Part Number Hot Search : 
PDZ27B VSYS1 694310KB ADP3152 SFCB7336 MGB31 5KS205 694310KB
Product Description
Full Text Search
 

To Download JN5161 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet: jn516x ieee802.15.4 wireless microcontroller ? nxp laboratories uk 2013 jn -ds - jn516x v1. 3 production 1 overview features: radio ? 2.4ghz ieee802.15.4 compliant ? 128- bit aes security processor ? mac accelerator with packet formatting, crcs, address check, auto - acks, timers ? integrated ultra low power sleep oscillator ? 0. 6 a ? 2.0v to 3.6v battery operation ? deep sleep current 0.12a (wake - up from io) ? <$0.15 external component cost ? rx current 1 7 ma , tx 15ma ? receiver sensitivity - 95dbm ? transmit power 2.5dbm ? time of flight engine for ranging ? ante nna diversity (auto rx) features: microcontroller ? 32- bit risc cpu, 1 to 32mhz clock speed ? variable instruction width for high coding efficiency ? multi - stage instruction pipeline ? JN5161: 64kb/8kb/4kb ? jn5164: 160kb/32kb/4kb ? jn5168: 256kb/32kb/4kb (flash/ram/eeprom) ? data eeprom with guaranteed 100k write operations. ? rf4ce, jennet - i p , zigbee se and zigbee light link stacks ? 2 - wire i2c compatible serial interface. can operate as either master or slave ? 5xpwm (4x timer & 1 timer/counter) ? 2 low power sleep counters ? 2x uart ? spi master & slave port, 3 selects ? supply voltage monitor with 8 programmable thresholds ? 4 - input 10 - bit adc, comparator ? battery and temperature sensors ? watchdog & b rown out reset ? up to 20 digital io pins (dio ) ? infra - red remote contro l transmitter temp range ( - 40c to +125c) 6x6mm 40 - lead lead- free and rohs complian t the jn516x series is a range of ultra low power, high performance wireless microcontrollers s upporting jennet - ip, zigbee pr o or rf4ce networking stacks to facilitate the development of home automation, smart energy, light link and remote control applications. they feature an enhanced 32 - bit risc processor with embedded flash and eeprom memory, offering high coding efficiency t hrough variable width instructions, a multi - stage instruction pipeline and low power operation with programmable clock speeds. they also include a 2.4ghz ieee802.15.4 compliant transceiver and a comprehensive mix of analogue and digital peripherals. three memory configurations are available to suit different applications. the best in class operating current of 15ma, with a 0.6 ua sleep timer mode, give s excellent battery life allowing operation direct from a coin cell. the peripherals support a wide range of applications. they include a 2 - wire i 2 c, and spi ports which can operate as either master or slave, a four channel adc with battery and a temperature sensor. it can support a large switch matrix of up to 100 ele ments, or alternatively a 20 key capacitive touch pad. block diagram 32-bit risc cpu 4xpwm + timer 2xuart 10-bit adc battery and temp sensors 2-wire serial (master/slave) spi master & slave ram 128-bit aes hardware 2.4ghz including diversity flash power management xtal o-qpsk modem 4kb eeprom 20 dio sleep counter watchdog timer watchdog timer voltage brownout 8/32k 64/160/256k radio 4-channel ieee 802. 15.4 baseband processor encryption benefits ? single chip device to run stack and application ? very low current solution for long battery life ? over 10 yrs ? supports multiple network stacks ? highly featured 32 - bit risc cpu for high performance and low power ? system bom is low in component count and cost ? flexible sensor interfacing options applications ? robust and secure low power wireless applications ? rf4ce remote controls ? jennet - ip networks ? zigbee se networks ? zigbee light link networks ? lighting & home automation ? toys and gaming peripherals ? smart energy ? energy harvesting, for example self powered light switch
2 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 contents benefits 1 applications 1 1 introduction 6 1.1 wireless transceiver 6 1.2 risc cpu and memory 6 1.3 peripherals 7 1.4 block diagram ? jn516x 8 2 pin configurations 9 2.1 pin assignment 10 2.2 pin descriptions 12 2.2.1 power supplies 12 2.2.2 reset 12 2.2.3 32mhz oscillator 12 2.2.4 radio 12 2.2.5 analogue peripherals 13 2.2.6 digital input/output 13 3 cpu 15 4 memory organisation 16 4.1 flash 16 4.2 ram 16 4.3 otp configuration memory 16 4.4 eeprom 17 4.5 external memory 17 4.6 peripherals 17 4.7 unused memor y addresses 17 5 system clocks 18 5.1 high - speed (32mhz) system clock 1 8 5.1.1 32mhz crystal oscillator 18 5. 1.2 high - speed rc oscillator 19 5.2 low - speed (32khz) system clock 19 5.2.1 32khz rc oscillator 19 5.2.2 32khz crystal oscillator 20 5.2.3 32khz external clock 20 6 reset 21 6.1 internal power - on / brown - out reset (bor) 21 6.2 external reset 22 6.3 software reset 22 6.4 supply vol tage monitor (svm) 22 6.5 watchdog timer 23 7 interrupt system 24 7.1 system calls 24 7.2 processor ex ceptions 24 7.2.1 bus error 24
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 3 7.2.2 alignment 24 7.2.3 illegal instruction 24 7.2.4 stack overflow 24 7.3 hardware interrupts 25 8 wireless transceiver 26 8.1 radio 26 8.1.1 radio external c omponents 27 8.1.2 antenna diversity 27 8.2 modem 29 8.3 baseband processor 30 8.3.1 tran smit 30 8.3.2 reception 30 8.3.3 auto acknowledge 31 8.3.4 beacon generation 31 8.3.5 se curity 31 8.4 security coprocessor 31 8.5 time of flight engine 31 9 digital input/output 32 10 serial peripheral interface 34 10 .1 serial peripheral interface master 34 10.2 serial peripheral interface slave 37 11 timers 38 11.1 peripheral timer/counters 38 11 .1.1 pulse width modulation mode 39 11.1.2 capture mode 39 11.1.3 counter/timer mode 40 11.1.4 delta - sigma mode 40 11.1.5 infra - red transmission mode 41 11.1.6 example timer/counter application 41 11.2 tick timer 42 11.3 wakeup timers 42 11.3.1 32 khz rc oscillator calibration 43 12 pulse counters 44 13 serial comm unications 45 13.1 interrupts 46 13.2 uart application 46 14 jtag test interface 48 15 two - wire serial interface (i 2 c) 49 15.1 connecting devices 49 15.2 clock stretching 50 15.3 master two - wire serial interface 50 15.4 slave two - wire serial interface 52 16 random number generator 53
4 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 17 analogue peripherals 54 17.1 analogue to digital converter 54 17.1.1 operation 55 17.1.2 supply monitor 56 17.1.3 tem perature sensor 56 17.1.4 adc sample buffer mode 56 17.2 comparator 56 18 power management and sleep modes 57 18.1 operating modes 57 18.1.1 pow er domains 57 18.2 active processing mode 57 18.2.1 cpu doze 57 18.3 sleep mode 57 18.3.1 wakeup ti mer event 58 18.3.2 dio event 58 18.3.3 comparator event 58 18.3.4 pulse counter 58 18.4 deep sl eep mode 58 19 electrical characteristics 59 19.1 maximum ratings 59 19.2 dc electrical characteristics 59 19.2.1 operating conditions 59 19.2 .2 dc current consumption 60 19.2.3 i/o characteristics 61 19.3 ac characteristics 61 19.3.1 reset and supply voltage monitor 61 19.3.2 spi master timing 63 19.3.3 spi slave timing 64 19.3.4 two - wire serial interface 65 19.3.5 wakeup timings 65 19.3.6 ban dgap reference 66 19.3.7 analogue to digital converters 66 19.3.8 comparator 67 19.3.9 32khz rc oscillator 67 19.3.10 32khz crystal oscillator 68 19.3.11 32mhz crystal oscillator 68 19.3.12 high - speed rc oscillator 69 19.3.13 temperature sensor 69 19.3.14 non - volatile memory 69 19.3.15 radio transceiver 70 appendix a mechanical and ordering information 76 a.1 sot618 - 1 hvqfn40 40 - pin qfn package drawing 76 a.2 footprint information 77 a.3 ordering information 78 a.4 device package marking 79 a.5 ta pe and reel information 80 a.5.1 tape orientation and dimensions 80 a.5.2 reel information: 180mm reel 81 a.5.3 reel information: 330mm reel 82
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 5 a.5.4 dry pack requirement for moisture sensitive material 82 appendix b development support 83 b.1 crystal oscillators 83 b.1.1 crystal equivalent circuit 83 b.1.2 crystal load capacitance 83 b.1.3 crystal esr and required transconductance 84 b.2 32mhz oscillator 85 b.3 32khz oscillator 87 b.4 jn516x module reference designs 89 b.4.1 schematic diagram 89 b.4.2 pcb design and reflow profile 91 b.4.3 moisture sensitivity level (msl) 91 related documents 92 rohs complianc e 92 status information 92 disclaimers 93 trademarks 93 version control 93 contact details 94
6 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 1 introduction the jn51 6x is an ieee802.15.4 wireless microcontroller that provides a fully integrated solution for applications using the ieee802.15.4 standard in the 2.4 - 2.5ghz ism frequency band [1] , including zigbee pro, zigbee smart energy, zigbee lightlink, rf4ce and jennet - ip . there are 3 versions in the range, differing only by memory configuration JN5161 - 001: 64kb flash, 8kb ram, 4 kb eeprom, suitable for ieee802.1 5.4 and rf4ce applications jn5164 - 001: 160kb flash, 32kb ram, 4 kb eeprom suitable for jennet - ip, ieee802.15.4 and rf4ce applications jn5168 - 001: 256kb flash, 32kb ram, 4 kb eeprom suitable for all applications applications that transfer data wirelessly te nd to be more complex than wired ones. wireless protocols make stringent demands on frequencies, data formats, timing of data transfers, security and other issues. application development must consider the requirements of the wireless network in addition to the product functionality and user interfaces. to minimise this complexity, nxp provides a series of software libraries and interfaces that control the transceiver and peripherals of the jn51 6x . these libraries and interfaces remove the need for the d eveloper to understand wireless protocols and greatly simplifies the programming complexities of power modes, interrupts and hardware functionality. in view of the above, it is not necessary to provide the register details of the jn51 6x in the datasheet. t he device includes a wireless transceiver, risc cpu, on chip memory and an extensive range of peripherals. 1.1 wireless transceiver the wireless transceiver comprises a 2.45ghz radio, a modem, a baseband controller and a security coprocessor. in addition, the radio also provides an output to control transmit - receive switching of external devices such as power amplifiers allowing applications that require increased transmit power to be realised very easily. appendix b.4 , describes a complete reference design including printed circuit board (pcb) design and bill of materials (bom). the security coprocessor provides hardware - based 128- bit aes - ccm* modes as specified by the ieee802.15.4 2006 standard. specifically this includes encryption and authentication covered by the mic ? 32/ -64/ - 128, enc and enc - mic ? 32/ -64/ - 128 modes of operation. the transceiver elements (radio, modem and baseband) work together to provide ieee802.15. 4 (2006) ma c and phy functionality under the control of a protocol stack. applications incorporating ieee802.15.4 functionality can be developed rapidly by combining user - developed application software with a protocol stack library. 1.2 risc cpu and memory a 32 - bit risc cpu allows software to be run on- chip, its processing power being shared between the ieee802.15.4 mac protocol, other higher layer protocols and the user application. the jn51 6x has a unified memory architecture, code m emory, data memory, peripheral devices and i/o ports are organised within the same linear address space. the device contains up to 256kbytes of flash , up to 32kbytes of ram and 4kbytes eeprom .
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 7 1.3 peripherals the following peripherals are available on chi p: ? master spi port with three select outputs ? slave spi port ? two uart?s, one capable of hardware flow control (4 - wire, includes rts/cts), and the other just 2- wire (rx/tx) ? one programmable timer/counter which supports pulse width modulation (pwm) and captur e/compare, plus four pwm timers which support pwm and timer modes only. ? two programmable sleep timers and a tick timer ? two - wire serial interface (compatible with smbus and i 2 c) supporting master and slave operation ? twenty digital i/o lines (multiplexed wit h peripherals such as timers , spi and uarts) ? two digital outputs (multiplexed with spi port) ? 10- bit, analogue to digital converter with up to four input channels . autonomous multi - channel sampling ? programmable analogue comparator ? internal temperature sensor and battery monitor ? two low power pulse counters ? random number generator ? watchdog timer and supply voltage monitor ? jtag hardware debug port ? infra - red remote control transmitter, supported by one of the pwm timers ? transmit and receive a ntenna divers ity with automatic receive switching based on received energy detection ? time of flight engine for ranging user applications access the peripherals using the integrated peripherals api. this allows applications to use a tested and easily understood view of the peripherals allowing rapid system development.
8 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 1.4 block diagram ? jn516 x wireless transceiver 32-bit risc cpu mux security processor digital baseband radio programmable interrupt controller from peripherals rf_in vcotune tick timer voltage regulators 1.8v vdd1 vdd2 ibias vb_xx eeprom 4kb cpu and 16mhz system clock 32mhz xtal clock generator xtal_in xtal_out clock source & rate select high- speed rc osc watchdog timer supply voltage monitor reset wakeup timer1 wakeup timer0 resetn 32khz clock select 32kin comparator1 comp1p comp1m adc m u x adc4 adc1 vref/adc2 adc3 temperature sensor supply monitor 32khz rc osc 32khz xtal osc 32kxtalin 32kxtalout spi slave dio0 dio1 dio2 dio3 dio4 dio5 dio6 dio7 dio8 dio9 dio10 dio11 dio12 dio13 dio14 dio15 dio16 dio17 dio18 dio19 do0 do1 txd0 spi master uart0 uart1 rxd0 rts0 cts0 txd1 rxd1 tim0ck_gt tim0out tim0cap pwm1 pwm2 pwm3 pwm4 sif_d sif_clk pc0 pc1 jtag_tdi jtag_tms jtag_tck jtag_tdo ado ade timer0 pwms 2-wire interface pulse counters jtag debug antenna diversity spiclk spimosi spimiso spisel0 spiclk spimosi spimiso spisel0 spisel1 spisel2 flash 256/160/64kb ram 32/32/8 kb figure 1 : jn516 x block diagram
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 9 2 pin configurations 1 40 39 38 37 36 35 34 33 32 31 vssa 2 3 4 5 6 7 8 9 10 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 dio16 dio17 resetn xtal_out xtal_in vb_synth vcotune vb_vco vdd1 ibias vref/adc2 vb_rf2 rf_in vb_rf1 adc1 dio0 dio1 dio2 dio3 do0 vss1 do1 dio18 dio19 vb_ram dio4 dio5 dio6 dio7 vdd2 dio15 vss2 dio14 dio13 dio12 vb_dig dio11 dio10 dio9 dio8 figure 2 : 40 -pi n qfn configuration (top view) ? note: please refer to appendix b.4 jn516x module reference design for important applications information regarding the connection of the paddle to the pcb.
10 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 2.1 pin assignment pin no power supplies signal type description 6, 8, 12, 14, 25, 35 vb_synth, vb_vco, vb_rf2, vb_rf1, vb_ram, vb_dig 1.8v regulated supply voltage 9, 30 vdd1, vdd2 3.3v supplies: vdd1 for analogue, vdd2 for digital 21, 39, paddle vss1, vss2, vssa 0v grounds (see appendix a.2 for paddle details) general 3 resetn cmos reset input 4,5 xtal_out, xtal_in 1.8v system crystal oscillator radio 7 vcotune 1.8v vco tuning rc network 10 ibias 1.8v bias current control 13 rf_in 1.8v rf antenna analogue peripheral i/o 15, 16, 17 adc1, dio0 (adc3) , dio1 (adc4) 3.3v adc inputs 11 vref/adc2 1.8v analogue peripheral reference voltage or adc input 2 1, 2 dio16 (comp1p) , dio17 (comp1m) 3.3v comparator inputs digital peripheral i/o primary alternate functions 16 dio0 spisel1 adc3 cmos dio0, spi master select output 1 or adc input 3 17 dio1 spisel2 adc4 pc0 cmos dio1, spi master select output 2, adc input 4 or pulse counter 0 input 18 dio2 rfrx tim0ck_gt cmos dio2, radio receive control output or timer0 clock/gate input 19 dio3 rftx tim0cap cmos dio3, radio transmit control output or timer0 capture input 26 dio4 cts0 jtag_tck tim0out pc0 cmos dio4, uart 0 clear to send input, jtag clk input, timer0 pwm output, or pulse counter 0 input 27 dio5 rts0 jtag_tms pwm1 pc1 cmos dio5, uart 0 request to send output, jtag mode select input, pwm1 output or pulse counter 1 input 28 dio6 txd0 jtag_tdo pwm2 cmos dio6, uart 0 transmit data output, jtag data output or pwm2 outpu t 29 dio7 rxd0 jtag_tdi pwm3 cmos dio7, uart 0 receive data input, jtag data input or pwm 3 output 31 dio8 tim0ck_gt pc1 pwm4 cmos dio8, timer0 clock/gate input, pulse counter1 input or pwm 4 output
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 11 32 dio9 tim0cap 32kxtalin rxd1 32kin cmos dio9, timer0 capture input, 32k external crystal input, uart 1 receive data input or 32k external clock input 33 dio10 tim0out 32kxtalout cmos dio10, timer0 pwm output or 32k external crystal output 34 dio11 pwm1 txd1 cmos dio11, pwm1 output or uart 1 transmit data output 36 dio12 pwm2 cts0 jtag_tck ado spismo si cmos dio12, pwm2 output, uart 0 clear to send input, jtag clk input, antenna diversity odd output or spi slave master out slave in input 37 dio13 pwm3 rts0 jtag_tms ade spismi so cmos dio13, pwm3 output, uart 0 request to send output, jtag mode select input, antenna diversity even output or spi slave master in slave out output 38 dio14 sif_clk txd0 txd1 jtag_tdo spisel 1 spisse l cmos dio14, serial interface clock, uart 0 transmit data output, uart 1 transmit data output, jtag data output, spi master select output 1 or spi slave select input 40 dio15 sif_d rxd0 rxd1 jtag_tdi spisel 2 spiscl k cmos dio15, serial interface data, uart 0 receive data input, uart 1 receive data input, jtag data input, spi master select output 2 or spi slave clock input 1 dio16 comp1p sif_clk spismosi cmos dio16, comparator positive input, serial interface clock or spi slave master out slave in input 2 dio17 comp1m sif_d spismiso cmos dio17, comparator negative input, serial interface data or spi slave master in slave out output 23 dio18 spimosi cmos spi master out slave in output 24 dio19 spisel0 cmos spi master select output 0 20 do0 spiclk pwm2 cmos spi master clock output or pwm2 output 22 do1 spimiso pwm3 cmos spi master in slave out input or pwm3 output ? the pcb schematic and layout rules detailed in appendix b.4 must be followed. failure to do so will likely result in the jn51 6x failing to meet the performance specification detailed herein and worst case may result in device not functioning in the en d application.
12 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 2.2 pin descriptions 2.2.1 power supplies the device is powered from the vdd1 and vdd2 pins, each being decoupled with a 100nf ceramic capacitor. vdd1 is the power supply to the analogue circuitry; it should be decoupled to ground. vdd2 is the power supply for the digital circuitry; and should also be decoupled to ground. in addition, a common 10f tantalum capacitor is required for low frequencies. decoupling pins for the internal 1.8v regulators are provided which each require a100nf capacitor lo cated as close to the device as practical. vb_synth , vb_ram and vb_dig require only a 100nf capacitor . vb_rf and vb_rf2 should be connected together as close to the device as practical, and require one 100nf capacitor and one 47pf capacitor. the pin vb_vc o requires a 10nf capacitor. refer to b.4.1 for schematic diagram. vssa (paddle) , vss1, vss2 are the ground pins. users are strongly discouraged f rom connecting their own circuits to the 1.8v regulated supply pins, as the regulators have been optimised to supply only enough current for the internal circuits. 2.2.2 reset resetn is an active low reset input pin that is connected to a 5 00k internal pull - up resistor. it may be pulled low by an external circuit. refer to section 6.2 for more details. 2.2.3 32mhz oscillator a crystal is connected between xta l _ in and xtal _ out to form the reference oscillator, which drives the system clock . a capacitor to analogue ground is required on each of these pins. refer to section 5.1 for more details. the 32mhz reference frequency is divided down to 16mhz and this is used as the system clock throughout the device. 2.2.4 radio the radio is a single ended design, requiring a capacitor and just two inductors to match to 50 microstrip line to the rf_in pin. an external resistor (43k ) is required between ibias and analogue ground (paddle) to set various bias currents and references within the radio.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 13 2.2.5 analogue peripherals the adc requires a reference voltage to use as par t of its operation. it can use either an internal reference voltage or an external reference connected to vref. this voltage is referenced to analogue ground and the performance of the analogue peripherals is dependent on the quality of this reference. t here are four adc inputs and a pair of comparator inputs. adc1 has a designated input pin but adc2 uses the same pin as vref, invalidating its use as an adc pin when an external reference voltage is required. the remaining 2 adc channels are shared with the digital i/os dio0 and dio1 and connect to pins 16 and 17. when these two adc channels are selected, the corresponding dios must be configured as inputs with their pull - ups disabled. similarly, the comparator shares pins 1 and 2 with dio16 and dio17, s o when the comparator is selected these pins must be configured as inputs with their pull - ups disabled. the analogue i/o pins on the jn51 6x can have signals applied up to 0.3v higher than vdd1. a schematic view of the analogue i/o cell is shown in figure 3 . figure 4 demonstrates a special case, where a digital i/o pin doubles as a n input to analogue devices. this applies to adc3, adc4, comp1p and comp1m. in reset, sleep and deep sleep, the analogue peripherals are all off. in sleep, the comparator may optionally be used as a wakeup source. unused adc and comparator inputs should not be left unconnected , for example connected to analogue ground. vdd1 analogue i/o pin vssa analogue peripheral figure 3 : analogue i/o cell 2.2.6 digital input/output for the dc properties of these pins see section 19.2.3 . when used in their primary function all digital input/output pins are bi - directional and are connected to weak internal pull up resistors ( 5 0k ? nominal) that can be disabled. when used in their secondary function (selected when the appropriate peripheral block is enabled through software library calls ), their direction is fixed by the function. the pull up resistor is enabled or disabled independently of the function and direction; the default state from reset is enabled. a schematic view of the digital i/o cell is in figure 4 . the dotted lines through resistor r esd represent a path that exists only on dio0, dio1, dio16 and dio17 which are also inputs to the adc (adc3, adc4) and comparator (comp1p, comp1m) respective ly. to use these dio pins for their analogue functions, the dio must be set as an input with its pull - up resistor, r pu , disabled.
14 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 o vdd2 pu r pu oe dio[x] pin r esd adc or comp1 input i ie r prot vss vss figure 4 : dio pin equivalent schematic in reset, the digital peripheral s are all off and the dio pins are set as high - impedance inputs. during sleep and deep sleep, the dio pins retain both their input/output state and output level that was set as sleep commences. if the dio pins were enabled as inputs and the interrupts we re enabled then these pins may be used to wake up the jn51 6x from sleep.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 15 3 cpu the cpu of the jn51 6x is a 32 - bit load and store risc processor. it has been architected for three key requirements: ? low power consumption for battery powered applications ? high p erformance to implement a wireless protocol at the same time as complex applications ? efficient coding of high - level languages such as c provided with the software developers kit it features a linear 32 - bit logical address space with unified memory archite cture, accessing both code and data in the same address space. registers for peripheral units, such as the timers, uart and the baseband processor are also mapped into this space. the cpu has access to a block of 15 32 - bit general - purpose (gp) registers t ogether with a small number of special purpose registers which are used to store processor state and control interrupt handling. the contents of any gp register can be loaded from or stored to memory, while arithmetic and logical operations, shift and rot ate operations, and signed and unsigned comparisons can be performed either between two registers and stored in a third, or between registers and a constant carried in the instruction. operations between general or special - purpose registers execute in one cycle while those that access memory require a further cycle to allow the memory to respond. the instruction set manipulates 8, 16 and 32 - bit data; this means that programs can use objects of these sizes very efficiently. manipulation of 32 - bit quantitie s is particularly useful for protocols and high - end applications allowing algorithms to be implemented in fewer instructions than on smaller word - size processors, and to execute in fewer clock cycles. in addition, the cpu supports hardware multiply that c an be used to efficiently implement algorithms needed by digital signal processing applications. the instruction set is designed for the efficient implementation of high - level languages such as c. access to fields in complex data structures is very effici ent due to the provision of several addressing modes, together with the ability to be able to use any of the gp registers to contain the address of objects. subroutine parameter passing is also made more efficient by using gp registers rather than pushing objects onto the stack. the recommended programming method for the jn51 6x is by using c, which is supported by a software developer kit comprising a c compiler, linker and debugger. the cpu architecture also contains features that make the processor suit able for embedded, real - time applications. in some applications, it may be necessary to use a real - time operating system to allow multiple tasks to run on the processor. to provide protection for device - wide resources being altered by one task and affect ing another, the processor can run in either supervisor or user mode, the former allowing access to all processor registers, while the latter only allows the gp registers to be manipulated. supervisor mode is entered on reset or interrupt; tasks starting up would normally run in user mode in a rtos environment. embedded applications require efficient handling of external hardware events. exception processing (including reset and interrupt handling) is enhanced by the inclusion of a number of special - purpo se registers into which the pc and status register contents are copied as part of the operation of the exception hardware. this means that the essential registers for exception handling are stored in one cycle, rather than the slower method of pushing the m onto the processor stack. the pc is also loaded with the vector address for the exception that occurred, allowing the handler to start executing in the next cycle. to improve power consumption a number of power - saving modes are implemented in the jn516x , described more fully in section 18 . one of these modes is the cpu doze mode; under software control, the processor can be shut down and on an interrupt it will wake up to service the request. additionally, it is possible under software control, to set the speed of the cpu to 1, 2, 4, 8, 16 or 32mhz. this feature can be used to trade - off processing power against current consumption.
16 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 4 memory organi sation this section describes the different memories found within the jn516 x . the device contains flash , ram, and eeprom memory, the wireless transceiver and peripherals all within the same linear address space. 0xffffffff unpopulated 0xf0008000 ram 0x04000000 0x02000000 flash boot code 8k 0x000c0000 0x00000000 0x00080000 flash & eeprom registers 0x01000000 peripherals flash applications code (256kb) figure 5 : jn516 8 memory map 4.1 flash the embedded flash consists of 2 parts: an 8k region used for holding boot code, and a 256k region (jn5168) used for application code. the sector size of the application code is always 32k, for any size of flash memory. the maximum number of write cycles or endurance is, 10k guaranteed and typically 100k, while the data retention is guaranteed for at least 10 years. the boot code region is pre - programmed by nxp on supplied parts, and contains code to handle rese t, interrupts and other events (see section 7). it also contains a flash programming interface to allow interaction with the pc - based flash programming utility which allows user code compiled using the supplied sdk to be programmed into the application spa ce . for further information , refer to the flash programmer user guide. [9] . the memory can be erased by a single or multiple sectors and written to in units of 256 bytes, known as pagewords. 4.2 ram the jn516 x devices contain up to 32kbytes of high speed ram, which can be accessed by the cpu in a single clock cycle. it is primarily used to hold the cpu stack together with program variables and data. if necessary, the cpu can execute code contained within the ram (although it would normally just execute code directly from the embedded flash). software can control the power supply to the ram allowing the contents to be maintained during a sleep period when other parts of th e device are un - powered, allowing a quicker resumption of processing once woken. 4.3 otp configuration memory the jn516x devices contain a quantity of one time programmable (otp) memory as part of the embedded flash (index sector). this can be used to securely hold such things as a user 64- bit mac address and a 128 - bit aes security key . by default the 64 - bit mac address is pre- programmed by nxp on supplied parts; however customers
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 17 can use their own mac address and override the default one. the user mac address and other data can be written to the otp memory using the flash programmer [9] . details on how to obtain and install mac addresses can be found in the flash programmer user guide . in addition 384bits are available, organised as three 128bit words, for customer use fo r storage of configuration or other information. 4.4 eeprom the jn516x devices contain 4kbytes of eeprom. the maximum number of writ e cycles or endurance is, 100k guaranteed and 1m typically while the data retent ion is guaranteed for at least 2 0 years. (the persistent data manager, includes a wear - levelling algorithm which can help to extend the endurance.) this non - volatile memory is primarily used to hold persistent data generated from such things as the network stack software component (e . g . network t opology, routing tables). as the eeprom holds its contents through sleep and reset events, this means more stable operation and faster recovery is possible after outages. access to the eeprom is via registers mapped into the flash and eeprom registers regi on of the address map. the memory can be erased by a single or multiple pages of 64 bytes . it can be written to in single or multiple bytes up to 64 bytes. the customer may use part of the eeprom to store its own data if desired by interfacing with the per sistent data manager. optionally the pdm can also store data in an external memory. for further information, please read - jenos user guide [12] . 4.5 external memory an optional external serial non - volatile memory (eg flash or eeprom) with a spi interface may be used to provide additional storage for program code, such as a new code image or further data for the device when external power is removed. the memory can be c onnected to the spi master interface using select line spisel0 (see fig 6 for details) jn516x serial memory spisel0 spimiso spimosi spiclk ss sdo sdi clk figure 6 : connecting external serial memory the contents of the external serial memory may be encrypted. the aes se curity processor combined with a user programmable 128 - bit encryption key is used to encrypt the contents of the external memory. the encryption key is stored in the flash memory index section . when bootloading program code from external serial memory, the jn516x automatically accesses the encryption key to execute the decryption p rocess, u ser program code does not need to handle any of the decryption process; it is transparent. for more details, including the h ow the program code encrypts data for the external memory , see the application note boot loader operation . [8] 4.6 peripherals all peripherals have their registers mapp ed into the memory space. access to these registers requires 3 peripheral clock cycles. applications have access to the peripherals through the software libraries that present a high - level view of the peripheral?s functions through a series of dedicated software routines. these routines provide both a tested method for using the peripherals and allow bug - free application code to be developed more rapidly. for details, see peripherals api user guide [4] . 4.7 unused memory addresses any attempt to access an unpopulated memory area will result in a bus error exception (interrupt) being generated.
18 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 5 system clocks two system clocks are used to drive the on - chip subsystems of the jn516x. the wake -up timers are driven from a low frequency clock (notionally 32khz). all other subsystems (transceiver, processor, memory and digital and analogue peripherals) are driven by a high - speed clock (notionally 32mhz), or a divided - down version of it. the high - speed clock is either generated by the accurate crystal - controlled oscillator (32mhz) or the less accurate high - speed rc oscillator ( 27 - 32mhz calibrated). the low - speed clock is either generated by the accurate crystal - controlled oscillator (32.768khz), the less accurate rc oscillator (centered on 32khz) or can be supplied externally 5.1 high - speed (32mhz) system clock the selected high - speed system clock is used directly by the radio subsystem, whereas a divided-by - two version is used by the remainder of the transceiver and the digital and analogue peripherals. the direct or divided down version of the clock is used to drive the processor and memories (32, 16, 8, 4, 2 or 1mhz). high speed rc oscillator 32mhz crystal oscillator div by 1,2,4,8,16 or 32 div by 2 peripheral system clock cpu clock figure 7 system and cpu clocks crystal oscillators are generally slow to start. hence to provide a fast start - up following a sleep cycle or reset, the fast rc oscillator is always used as the initial source for the high - speed system clock. t he oscillator starts very quickly and will run at 2 5 -3 2 mhz (uncalibrated) or 32mhz +/ - 5% (calibrated). although this means that the system clock will be running at an un defined frequency (slightly slower or faster than nominal), this does not prevent the c pu and memory subsystems operating normally, so the program code can execute. however, it is not possible to use the radio or uarts, as even after calibration (initiated by the user software calling an api function) there is still a +/ -5% tolerance in the clock rate over voltage and temperature. other digital peripherals can be used (eg spi master/slave), but care must be taken if using timers due to the clock frequency inaccuracy. further details of the high - speed rc oscillator can be found in section 19.3.11. on wake - up from sleep, the jn516x uses the fast rc oscillator. it can then either: ? automatically switch over to use the 32mhz clock source when it has started up. ? continue to use the fast rc oscillator until software triggers the switch - over to the 32mhz clock source, for example when the radio is required. ? continue to use the rc oscillator until the device goes back into one of the sleep modes. t he use of the fast rc oscillator at wake - up means there is no need to wait for the 32mhz crystal osci llator to stabilise consequently, the application code will start executing quickly using the clock from the high - speed rc oscillator. 5.1.1 32mhz crystal oscillator the jn516 x contains the necessary on chip components to build a 32mhz reference oscillator with the addition of an external crystal resonator and two tuning capacitors. the schematic of these components are shown in figure 8 . the two capacitor s, c1 and c2, should typically be 15pf and use a cog dielectric. due to the small size of these capacitors, it is important to keep the traces to the external components as short as possible. the on chip transconductance amplifier is c ompensated for tempe rature variation, and is self - biasing by means of the internal resistor r1. this oscillator provides the frequency reference for the radio and therefore it is essential that the reference pcb layout and bom are carefully followed. the electrical specificat ion of the oscillator can be found in
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 19 section 19.3.11 . please refer to appendix b for development support with the crystal oscillator circuit. the oscillator includes a function which flags when the amplitude of oscillation has reached a satisfactory level for full operation, and this is checked before the source of the high - speed system clock is changed to the 32mhz crystal oscillator xtalout c2 c1 r1 xtalin jn516x figure 8 : 32mhz crystal oscillator connections for operation over the extended temperature range, 85 to 125 deg c, special care is req uired; this is because the temperature characteristics of crystal resonators are generally in excess of +/ - 40ppm frequency tolerance defined by the ieee802.15.4 standard. the oscillator cell contains additional circuitry to compensate for the poor performa nce of the crystal resonators above 100 deg c. full details, including the software api function, can b e found in the application note jn516x temperature - dependent operating guidelines [2] 5.1.2 high- speed rc oscillator an on - chip high - speed rc oscillator is provided in addition to the 32mhz crystal oscillator for two purposes, to allow a fast start - up from reset or sleep and to provide a lower current alternative to the c rystal oscillator for non - timing critical applications. by default the oscillator will run at 27mhz typically with a wide tolerance. it can be calibrated, using a software api function, which will result in a nominal frequency of 32mhz with a +/ - 1.6% toler ance at 3v and 25 deg c. however, it should be noted that over the full operating range of voltage and temper ature this will increase to +/ -5 %. the calibration information is retained through speed cycles and when the oscillator is disabled, so typically the calibration function only needs to be called once. no external components are required for this oscillator. the electrical specification of the oscillator can be found in section 19.3.12 . 5.2 low - speed ( 32khz ) system clock the 32khz system clock is used for timing the length of a sleep period (see section 18 ). the clock can be selected from one of three sources through the application software: ? 32khz rc oscillator ? 32khz crystal oscillator ? 32khz external clock upon a chip reset or power - up the jn516 x defaults to using the internal 32khz rc oscillator . if another clock source is selecte d then it will remain in use for all 32khz timing until a chip reset is performed. 5.2.1 32khz rc oscillator the internal 32khz rc oscillator requires no external components. the internal timing components of the oscillator have a wide tolerance due to manufactu ring process variation and so the oscillator runs nominally at 32khz - 10% /+ 4 0%. to make this useful as a timing source for accurate wakeup from sleep, a frequency calibration factor derived from the more accurate 16mhz clock may be applied. the calibratio n factor is derived through software, details can be found in section 11.3.1 . software must check that the 32khz rc oscillator is running before using it. the oscillator has a default current consumption of around 0.5ua, optionally this can be reduced to 0.375ua, however, the
20 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 calibrated accuracy and temperature coefficient will be worse as a consequence. for detaile d electrical specifications, see section 19.3.9 . 5.2.2 32khz crystal oscillator in order to obtain more accurate sleep periods, the jn516 x contains the n ecessary on - chip components to build a 32khz oscillator with the addition of an external 32.768khz crystal and two tuning capacitors. the crystal should be connected between 32kxtalin and 32kxtalout (dio9 and dio10), with two equal capacitors to ground, on e on each pin. due to the small size of the capacitors, it is important to keep the traces to the external components as short as possible. the electrical specification of the oscillator can be found in section 1 9.3.10 . the oscillator cell is flexible and can operate with a range of commonly available 32.768khz crystals with load capacitances from 6 to 12.5pf. however, the maximum esr of the crystal a nd the supply current are both functions of the actual crystal used, see appendix b.1 for more details. 32kxtalout 32kxtalin jn516x figure 9 : 32khz crystal oscillator connections 5.2.3 32khz external clock an externally supplied 32khz reference clock on the 32k xtal in input (dio9) may be provided to the jn516 x . this would allow the 32khz system clock to be sourced from a very stable external oscillator module, allowing more accurate sleep cycle timings compared to the internal rc oscillator. (see section 19.2.3 )
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 21 6 reset a system reset initialises the device to a pre - defined state and forces the cpu to start program execution from the reset vector. the reset process that the jn516 x goes through is as follows. when power is first appli ed or when the external reset is released, the high - speed rc oscillator and 32mhz crystal oscillator are activated. after a short wait period (13 sec approx) while the high - speed rc starts up, and so long as the supply voltage satisfies the default supply voltage monitor ( svm ) threshold (2.0v+0.045v hysteresis), the internal 1.8v regulators are turned on to power the processor and peripheral logic. the regulators are allowed to stabilise (about 15us) followed by a further wait (150usec approx) to allow th e flash and eeprom bandgaps to stabilise and allow their initialisation, including reading the user svm threshold from the flash. this is applied to the svm and, after a brief pause (approx 2.5usec), the svm is checked again. if the supply is above the new svm threshold, the cpu and peripheral logic is released from reset and the cpu starts to run code beginning at the reset vector. this runs the bootloader code contained within the flash, which looks for a valid application to run, first from the internal flash and then from any connected external serial memory over the spi master interface. once found, required variables are initialised in ram before the application is called at its appcoldstart entry point. more details on the bootloader can be found in t he application note - boot loader operation . [8] the jn516 x has five sources of reset: ? internal power - on / brown -o ut reset (bor) ? external reset ? software reset ? watchdog timer ? supply voltage detect l note : when the device exits a reset condition, device operating parameters (voltage, frequency, temperature, etc.) must be met to ensure operation. if these conditions are not met, then the device must be held in reset until the operating conditions are met. (see section 19.3 ) 6.1 internal power - on / brown - o ut reset (bor) for the majority of applications the internal power - on reset i s capable of generating the required reset signal. when power is applied to the device, the power - on reset circuit monitors the rise of the vdd supply. when the vdd reaches the specified threshold, the reset signal is generated. this signal is held interna lly until the power supply and oscillator stabilisation time has elapsed, when the internal reset signal is then removed and the cpu is allowed to run. the bor circuit has the ability to reject spikes on the vdd rail to avoid false triggering of the reset module. typically for a negative going square pulse of duration 1us, the voltage must fall to 1.2v before a reset is generated. similarly for a triangular wave pulse of 10us width, the voltage must fall to 1.3v before causing a reset. the exact characteris tics are complex and these are only examples. internal reset vdd figure 10 : internal power - on reset when the supply drops below the power on reset ?falling? threshold, it will re - trigger the reset. if necessary, u se of t he external reset circuit show in figure 11 is suggested.
22 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 resetn c1 r1 jn516x vdd 18k 470nf figure 11 : external reset generation the external resistor and capacitor provide a simple reset operation when connected to the resetn pin but are not neccessary . 6.2 external reset an external reset is generated by a low level on the resetn pin. reset pulses longer than the minimum pulse width will generate a reset during active or sleep modes. shorter pulses are not guaranteed to generate a reset. the jn516x is held in reset whil e the resetn pin is low. when the applied signal reaches the reset threshold voltage (v rst ) on its positive edge, the internal reset process starts. the jn516 x has an internal 5 00k pull - up resistor connect to the resetn pin. the pin is an input for an ex ternal reset only. b y holding the resetn pin low, the jn516x is held in reset, resulting in a typical current of 6ua. internal reset resetn pin reset figure 12 : external reset 6.3 software reset a system reset can be triggered at any t ime through software control, causing a full chip reset and invalidating the ram contents. for example this can be executed within a user?s application upon detection of a system failure. 6.4 supply voltage monitor (svm) an internal supply voltage monitor (svm ) is used to monitor the supply voltage to the jn516 x ; this can be used whilst the device is awake or is in cpu doze mode. dips in the supply voltage below a variable threshold can be detected and can be used to cause the jn516 x to perform a chip reset. equally, dips in the supply voltage can be
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 23 detected and used to cause an interrupt to the processor, when the voltage either drops below the threshold or rises above it. the supply voltage detect is enabled by default from power -u p and can extend the reset during power - up. this will keep the cpu in reset until the voltage exceeds the svm threshold voltage. the threshold voltage is configurable to 1.95v, 2.0v, 2.1v, 2.2v, 2.3v, 2.4v, 2.7v and 3.0v and is controllable by software. f rom power - up the threshold is set by a setting within the flash and the default chip configuration is for the 2. 0 v threshold. it is expected that the threshold is set to the minimum needed by the system. . 6.5 watchdog timer a watchdog timer is provided to guar d against software lockups. it operates by counting cycles of the high - speed rc system clock. a pre - scaler is provided to allow the expiry period to be set between typically 8ms and 16.4 seconds (dependent on high - speed rc accuracy: +30%, - 15%). failure to restart the watchdog timer within the pre- configured timer period will cause a chip reset to be performed. a status bit is set if the watchdog was triggered so that the software can differentiate watchdog initiated resets from other resets, and can per form any required recovery once it restarts. optionally, the watchdog can cause an exception rather than a reset, this preserves the state of the memory and is useful for debugging. after power up, reset, start from deep sleep or start from sleep, the watc hdog is always enabled with the largest timeout period and will commence counting as if it had just been restarted. under software control the watchdog can be disabled. if it is enabled, the user must regularly restart the watchdog timer to stop it from e xpiring and causing a reset. the watchdog runs continuously, even during doze, however the watchdog does not operate during sleep or deep sleep, or when the hardware debugger has taken control of the cpu. it will recommence automatically if enabled once the debugger un - stalls the cpu.
24 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 7 interrupt system the interrupt system on the jn516 x is a hardware - vectored interrupt system. the jn516 x provides several interrupt sources, some associated with cpu operations (cpu exceptions) and others which are used by hardware in the device. when an interrupt occurs, the cpu stops executing the current program and loads its program counter with a fixed hardware address specific to that interrupt. the interrupt handler or interrupt service routine is stored at this loc ation and is run on the next cpu cycle. execution of interrupt service routines is always performed in supervisor mode. interrupt sources and their vector locations are listed in table 1 below: interrupt source vector location interrupt definition bus error 0x08 typically cause by an attempt to access an invalid address or a disabled peripheral tick timer 0x0e tick timer interrupt asserted alignment error 0x14 load/store address to non - naturally - aligned location illegal instruction 0x1a attempt to execute an unrecognised instruction hardware interrupt 0x20 interrupt asserted system call 0x26 system call initiated by b.sys instruction trap 0x2c caused by the b.trap instruction or the debug unit reset 0x38 caused by software or hardware reset. stack overflow 0x3e stack overflow table 1 : interrupt vectors 7.1 system calls the b.trap and b.sys instructions allow processor exceptions to be generated by software. a system call exception will be generated when the b.sys instruction is executed. this exception can, for example, be used to enable a task to switch the processor into supervi sor mode when a real time operating system is in use. (see section 3 for further details.) the b.trap instruction is commonly used for trapping errors and for debugging. 7.2 processor exceptions 7.2.1 bus error a bus error exception is generated when software attemp ts to access a memory address that does not exist, or is not populated with memory or peripheral registers. 7.2.2 alignment alignment exceptions are generated when software attempts to access objects that are not aligned to natural word boundaries. 16 - bit objec ts must be stored on even byte boundaries, while 32 - bit objects must be stored on quad byte boundaries. for instance, attempting to read a 16 - bit object from address 0xfff1 will trigger an alignment exception as will a read of a 32 - bit object from 0xfff1, 0xfff2 or 0xfff3. examples of legal 32 - bit object addresses are 0xfff0, 0xfff4, 0xfff8 etc. 7.2.3 illegal instruction if the cpu reads an unrecognised instruction from memory as part of its instruction fetch, it will cause an illegal instruction exception. 7.2.4 stack overflow when enabled, a stack overflow exception occurs if the stack pointer reaches a programmable location.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 25 7.3 hardware interrupts hardware interrupts generated from the transceiver, analogue or digital peripherals and dio pins are individually mask ed using the programmable interrupt controller (pic). management of interrupts is provided in the p eripherals api user guide [4] . for details of the interrupts generated from each peripheral see the respective section in this datasheet. interrupts can be used to wake the jn516 x from sleep. the peripherals, baseband controller, security coprocessor and pic are powered down during sleep but the dio interrupts and optionally the pulse counters, wake - up timers and analogue comparator interrupts remain powered to bring the jn516 x out of sleep. prioritised external interrupt handling (i.e., interrupts from hardware peripherals) is provided to enable an a pplication to control an events priority to provide for deterministic program execution. the priority interrupt controller provides 15 levels of prioritised interrupts. the priority level of all interrupts can be s et, with value 0 being used to indicate th at the source can never produce an external interrupt, 1 for the lowest priority source(s) and 15 for the highest priority source(s). note that multiple interrupt sources can be assigned the same priority level if desired. if while processing an interrup t, a new event occurs at the same or lower priority level, a new external interrupt will not be triggered. however, if a new higher priority event occurs, the external interrupt will again be asserted, interrupting the current interrupt service routine. on ce the interrupt service routine is complete, lower priority events can be serviced.
26 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 8 wireless transceiver the wireless transceiver comprises a 2.45ghz radio, modem, a baseband processor, a security coprocessor and phy controller. these blocks, with prot ocol software provided as a library, implement an ieee802.15.4 standards - based wireless transceiver that transmits and receives data over the air in the unlicensed 2.4ghz band. 8.1 radio figure 13 shows the single ended radio architecture. lna synth pa adc reference & bias switch radio calibration lim1 lim2 lim3 lim4 sigma delta d-type figure 13 : radio architecture the radio comprises a low - if receive path and a direct modulation transmit path, which converge at the tx/rx switch. the switch connects to the external single ended matching network, which consists of two inductors and a capacitor, this arrangement creates a 50 ? port and removes the need for a balun. a 50 ? single ended antenna can b e connected directly to this port. the 32mhz crystal oscillator feeds a divider, which provides the frequency synthesiser with a reference frequency. the synthesiser contains programmable feedback dividers, phase detector, charge pump and internal voltage controlled oscillator (vco). the vco has no external components, and includes calibration circuitry to compensate for differences in internal component values due to process and temperature variations. the vco is controlled by a phase locked loop (pll) t hat has an internal loop filter. a programmable charge pump is also used to tune the loop characteristic. the receiver chain starts with the low noise amplifier/mixer combination whose outputs are passed to a low pass filter, which provides the channel de finition. the signal is then passed to a series of amplifier blocks forming a limiting strip. the signal is converted to a digital signal before being passed to the modem. the gain control for the rx path is derived in the automatic gain control (agc) b lock within the modem, which samples the signal level at various points down the rx chain. to improve the performance and reduce current consumption, automatic calibration is applied to various blocks in the rx path. in the transmit direction, the digital stream from the modem is passed to a digital sigma - delta modulator which controls the feedback dividers in the synthesiser, (dual point modulation). the vco frequency now tracks the applied modulation. the 2.4 ghz signal from the vco is then passed to t he rf power amplifier (pa), whose power control can be selected from one of three settings. the output of the pa drives the antenna via the rx/tx switch
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 27 the jn516x radio when enabled is automatically calibrated for optimum performance. in operating enviro nments with a significant variation in temperature (e.g. greater than 20 deg c) due to diurnal or ambient temperature variation, it is recommended to recalibrate the radio to maintain performance. recalibration is only required on routers and end devices t hat never sleep. end devices that sleep when idle are automatically recalibrated when they wake. an application note jn516x temperature - dependent operating guidelines [2] describes this in detail and includes a software api function which can be used to test the temperature using the on - chip temperature sensor and trigger a recalibration if there has been a significant temperature change since the previous calibratio n. 8.1.1 radio external components in order to realise the full performance of the radio it is essential that the reference pcb layout and bom are carefully followed. see appendix b.4 . the radio is powered from a number of internal 1.8v regulators fed from the analogue supply vdd1, in order to provide good noise isolation between the digital logic of the jn516 x and the analogue blocks. these regulators are also controlled by the baseband controller and protocol software to minimise power consumption. decoupling for internal regulators is required as described in section 2.2.1 . for single ended antennas or connectors, a balun is not required, however a matching network is needed. the rf matching network requires three external components and the ibias pin requires one external component as shown in schematic in b.4.1 . these components are critical and should be placed close to the jn516 x pins and a nalogue ground as defined in table 12 . specifically, the output of the network comprising l2, c1 and l1 is designed to present an accurate match to a 50 ohm resistive network as well as provide a dc path to the final output stage or antenna. users wishing to match to other active devices such as amplifiers should design their networks to match to 50 ohms at the output of l1 r1 43k ibias c20 100nf l2 3.9nh vb_rf vref vb_rf2 rf_in c3 100nf c12 47pf vb_rf1 c1 47pf l1 5.1nh to coaxial socket or integrated antenna vb_rf figure 14 : external radio components 8.1.2 antenna diversity support is provided for antenna diversity. antenna diversity is a technique that maximises the performance of an antenna system. it allows the radio to switch between two antennas that have very low correlation between their received signals. typically, this is achieved by spacing two antenna e around 0.25 wavelengths apart or by using two orthogonal polarisations. so, if a packet is transmitted and no acknowledgement is received, the r adio system can switch to the other antenna for the retry, with a different probability of success.
28 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 additionally antenna diversity can be enabled whilst in receive mode waiting for a packet. the jn516x measures the received energy in the relevant radio cha nnel every 40s and the measured energy level is compared with a pre - set energy threshold, which can be set by the application program. the jn516x device will automatically switch the antenna e if the measurement is below this threshold , except if waiting f or an acknowledgement from a previous transmission or if the process of receiving a packet, when it will wait until this has finished. also, it will not switch if a preamble symbol having a signal quality above a minimum specified threshold has not been de tected in the last 40s both modes can be used at once and use the same ado and ade outputs to control the switch. the jn516 x provides an output (ado) on dio12 that is asserted on odd numbered retries and optionally its complement (ade) on dio13, that ca n be used to control an antenna switch; this enables antenna diversity to be implemented easily (see figure 15 and figure 16) . antenna a antenna b a b com sel selb ado (dio[12]) ade (dio[13]) device rf port rf switch: single-pole, double-throw (spdt) figure 15 : simple antenna diversity implementation using external rf switch ado (dio[12]) tx active rx active ade (dio[13]) 1st tx-rx cycle 2nd tx-rx cycle (1st retry) figure 16 : antenna diversity ado signal for tx with acknowledgement if two dio pins cannot be spared, dio13 can be configured to be a normal dio pin, and the inverse of ado generated with an inverter on the pcb.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 29 8.2 modem the modem performs a ll the necessary modulation and spreading functions required for digital transmission and reception of data at 250kbps in the 2450mhz radio frequency band in compliance with the ieee802.15.4 standard. agc demodulation symbol detection (despreading) modulation spreading tx rx tx data interface rx data interface vco sigma-delta modulator if signal gain figure 17 : modem architecture features provided to support network channel selection algorithms include energy detection (ed), link quality indication (lqi) and fully programmable clear channel assessment (cca). the modem provides a digital receive signal strength indication (rssi) that facilitates the implementation of the ieee 802.15.4 ed function and lqi function. the ed and lqi are both related to receiver power in the same way, as shown in figure 18 . lqi is associated with a received packet, whereas ed is an indication of signal power on air at a particular moment. the cca capability of the modem supports all modes of operation defined in the ieee 8 02.15.4 standard, namely energy above ed threshold, carrier sense and carrier sense and/or energy above ed threshold. figure 18 : energy detect value vs receive power level
30 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 8.3 baseband processor the baseband processor provides all ti me - critical functions of the ieee802.15.4 mac layer. dedicated hardware guarantees air interface timing is precise. the mac layer hardware/software partitioning, enables software to implement the sequencing of events required by the protocol and to sched ule timed events with millisecond resolution, and the hardware to implement specific events with microsecond timing resolution. the protocol software layer performs the higher - layer aspects of the protocol, sending management and data messages between end point and coordinator nodes, using the services provided by the baseband processor. supervisor append checksum serialiser dma engine tx stream radio protocol timing engine csma cca backoff control control rx stream verify checksum deserialiser protocol timers security coprocessor aes codec encrypt port decrypt port status processor bus figure 19 : baseband processor 8.3.1 transmit a transmission is performed by software writing the data to be transferred into the tx frame buffer in ram , together with parameters such as the destination address and the number of retries allowed, and programming one of the protocol timers to indicate t he time at which the frame is to be sent. this time will be determined by the software tracking the higher - layer aspects of the protocol such as superframe timing and slot boundaries. once the packet is prepared and protocol timer set, the supervisor blo ck controls the transmission. when the scheduled time arrives, the supervisor controls the sequencing of the radio and modem to perform the type of transmission required , fetching the packet data directly from ram . it can perform all the algorithms requi red by ieee802.15.4 such as csma/ca without processor intervention including retries and random backoffs. when the transmission begins, the header of the frame is constructed from the parameters programmed by the software and sent with the frame data throu gh the serialiser to the modem. at the same time, the radio is prepared for transmission. during the passage of the bitstream to the modem, it passes through a crc checksum generator that calculates the checksum on - the - fly, and appends it to the end of t he frame. 8.3.2 reception during reception, the radio is set to receive on a particular channel. on receipt of data from the modem, the frame is directed into the rx frame buffer in ram where both header and frame data can be read by the protocol software. an interrupt may be provided on receipt of the frame header. as the frame data is being received from the modem it is passed through a checksum generator; at the end of the reception the checksum result is compared with the checksum at the end of the message to ensure that the data has been received correctly. an interrupt may be provided to indicate successful packet reception. during reception, the modem determines the link quality, which is made available at the end of the reception as part of the require ments of ieee802.15.4.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 31 8.3.3 auto acknowledge part of the protocol allows for transmitted frames to be acknowledged by the destination sending an acknowledge packet within a very short window after the transmitted frame has been received. the jn516 x baseband pr ocessor can automatically construct and send the acknowledgement packet without processor intervention and hence avoid the protocol software being involved in time - critical processing within the acknowledge sequence. the jn516 x baseband processor can also request an acknowledge for packets being transmitted and handle the reception of acknowledged packets without processor intervention. 8.3.4 beacon generation in beaconing networks, the baseband processor can automatically generate and send beacon frames; the re petition rate of the beacons is programmed by the cpu, and the baseband then constructs the beacon contents from data delivered by the cpu. the baseband processor schedules the beacons and transmits them without cpu intervention. 8.3.5 security the transmission and reception of secured frames using the advanced encryption standard (aes) algorithm is handled by the security coprocessor and the stack software. the application software must provide the appropriate encrypt/decrypt keys for the transmission or recep tion. on transmission, the key can be programmed at the same time as the rest of the frame data and setup information. 8.4 security coprocessor the security coprocessor is available to the application software to perform encryption/decryption operations. a hardware implementation of the encryption engine significantly speeds up the processing of the encrypted packets over a pure software implementation. the aes library for the jn516 x provides operations that utilise the encryption engine in the device and a llow the contents of memory buffers to be transformed. information such as the type of security operation to be performed and the encrypt/decrypt key to be used must also be provided. processor interface aes block encryption controller aes encoder key generation figure 20 : secur ity coprocessor architecture 8.5 time of flight engine the jn516x family includes unique hardware functions to enable measurement of the distance between two nodes using a ?time of flight? (tof ) function. this function uses dedicated timers and interpolation of the timing of correlation peaks in the demodulator to measure the delays introduced by the time taken for the radio signals to travel between nodes. it is also possible to use the receive d signal strength (rssi) to indicate the distance. due to the characteristics of the transmitted signal and the baseband circuitry, tof offers a significant improvement in accuracy for distance measurements above 10m compared with rssi, while rssi provides better ranging results below 10m. hence, tof is best suited to long range distance measurement. the raw timing results are made available through an api function, but the responsibility for converting these into location information lies with the user. for more information, see the time -of - flight api user guide [10]
32 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 9 digital input/output there are 20 digital i/o (dio) pins which when used as general - purpose pins can be configured as either an input or an output, with each having a selectable internal pull - up resistor. in addition, there are 2 digital output (do) pins. most dio pins are shared with the digital and analogue peripherals of the device. when a peripheral is enabled, it takes control over the device pins allocated to it. however, note that most peripherals have 2 alternative pin allocations to alleviate clashes between uses, a nd many peripherals can disable the use of specific pins if not required. refer to section 2.1 and the individual peripheral descriptions for full details of the available pinout arrangements. following a reset (and whilst the resetn input is held low), al l peripherals are forced off and the dio pins are configured as inputs with the internal pull - ups turned on. when a peripheral is not enabled, the dio pins associated with it can be used as digital inputs or outputs. each pin can be controlled individually by setting the direction and then reading or writing to the pin. the individual pull - up resistors, r pu , can also be enabled or disabled as needed and the setting is held through sleep cycles. the pull - ups are generally configured once after reset dependi ng on the external components and functionality. for instance, outputs should generally have the pull - ups disabled. an input that is always driven should also have the pull - up disabled. when configured as an input each pin can be used to generate an interr upt upon a change of state (selectable transition either from low to high or high to low); the interrupt can be enabled or disabled. when the device is sleeping, these interrupts become events that can be used to wake the device up. equally the status of the interrupt may be read. see section 18 for further details on sleep and wakeup. the state of all dio pins can be read, irrespective of whether the dio is config ured as an input or an output. throughout a sleep cycle the direction of the dio, and the state of the outputs, is held. this is based on the resultant of the gpio data/direction registers and the effect of any enabled peripherals at the point of entering sleep. following a wake - up these directions and output values are maintained under control of the gpio data/direction registers. any peripherals enabled before the sleep cycle are not automatically re - enabled, this must be done through software after the w ake -up. for example, if dio0 is configured to be spisel1 then it becomes an output. the output value is controlled by the spi functional block. if the device then enters a sleep cycle, the dio will remain an output and hold the value being output when ente ring sleep. after wake - up the dio will still be an output with the same value but controlled from the gpio data/direction registers. it can be altered with the software functions that adjust the dio, or the application may re - configure it to be spisel1. un used dio pins are recommended to be set as inputs with the pull - up enabled. two dio pins can optionally be used to provide control signals for rf circuitry (e.g. switches and pa) in high power range extenders. dio3/rftx is asserted when the radio is in th e transmit state and similarly, dio2/rfrx is asserted when the radio is in the receiver state.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 33 mux spi slave dio0/spisel1/ adc3 dio1/spisel2/ adc4/pc0 dio2/rfrx/tim0ck _gt dio3/rftx/tim0cap dio4/cts0/ tim0out/pc 0 dio5/rts0/ pwm1/pc1 dio6/txd0/ pwm2 dio7/rxd0/pwm3 dio8/tim0ck_gt /pc1/pwm4 dio9/tim0cap/32kxtalin/rxd1/ 32kin dio10/tim0out/32kxtalout dio11/pwm1/txd1 dio12/pwm2/cts0/ ado/spismosi dio13/pwm3/rts0/ade/ spismiso dio14/sif_clk/txd0/txd 1/spisel1/spissel dio15/sif_d/rxd0/rxd 1/spisel2/spisclk dio16/comp1p/sif_clk/ spismosi dio17/comp1m/sif_d/ spismiso dio18/spimosi dio19/spisel0 do0/spiclk/pwm2 do1/spimiso/pwm3 txd0 spi master uart0 uart1 rxd0 rts0 cts0 txd1 rxd1 tim0ck_gt tim0out tim0cap pwm1 pwm2 pwm3 pwm4 sif_d sif_clk pc0 pc1 jtag_tdi jtag_tms jtag_tck jtag_tdo ado ade timer0 pwms 2-wire interface pulse counters jtag debug antenna diversity spiclk spimosi spimiso spisel0 spiclk spimosi spimiso spisel0 spisel1 spisel2 figure 21 dio block diagram
34 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 10 serial peripheral interface 10.1 serial peripheral interface master the serial peripheral interface (spi) allows high - speed synchronous data transfer between the jn516 x and peripheral devices. the jn516 x operates as a master on the spi bus and all other devices connected to the spi are expected to be slave devices under t he control of the jn516 x cpu. the spi includes the following features: ? full - duplex, three- wire synchronous data transfer ? programmable bit rates (up to 16mbit/s) ? programmable transaction size up to 32 - bits ? standard spi modes 0,1,2 and 3 ? manual or automatic slave select generation (up to 3 slaves) ? maskable transaction complete interrupt ? lsb first or msb first data transfer ? supports delayed read edges clock divider spi bus cycle controller data buffer div clock edge select data char_len lsb spimiso spimosi spiclk select latch spisel [2..0] 16 mhz figure 22 : spi master block diagram the spi bus employs a simple shift register data transfer scheme. data is clocked out of and into the active devices in a first - in, first - out fashion allowing spi devices to transmit and receive data simultaneously. master - out - slave - in or master -in - slave - out data transfer i s relative to the clock signal spiclk generated by the jn516x . the jn516x provides three slave selects, spisel0 to spisel2 to allow three spi peripherals on the bus. spisel0 is accessed on di019 . spisel1 is accessed, depending upon the configuration, on d io0 or dio14. spisel2 is accessed on dio1 or dio15. this is enabled under software control. the following table details which dio are used for the spisel signals depending upon the configuration. signal dio assignment standard pins alternative pins spisel1 dio0 dio14 spisel2 dio1 dio15 spiclk do0 spimiso do1 spimosi dio18 spisel0 dio19 table 2 : spi master io
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 35 the interface can transfer from 1 to 32 - bits without software intervention and can keep the slave select lines asserted between transfers when required, to enable longer transfers to be performed. when the device reset is active, all the spi master pins are configured as inputs with their pull - up resistors active. the pins stay in this state until the spi master b lock is enabled, or the pins are configured for some other use . ss slave 0 flash/ eeprom me mor y jn5142 sp i se l 0 sp i se l 1 s pi m o si spic lk s pi m i so ss slave 1 us er def ine d ss slave 2 user def ine d sp i se l 2 c si so c si so c si so jn516x figure 23 : typical jn516x spi peripheral connection the data transfer rate on the spi bus is determined by the spiclk signal. the jn516 x supports transfers at selectable data rates from 16mhz to 125khz selected by a clock divider. both spiclk clock phase and polarity are configurable. the clock phase determines which edge of spiclk is used by the jn516 x to present new data on the spimosi line; the opposite edge will be used to read data from the spimiso line. the interface should be configured appropriately for the spi slave being accessed. spiclk mode description polarity (cpol) phase (cpha) 0 0 0 spiclk is low when idle ? the first edge is positive. valid data is output on spimosi before the first clock and changes every negative edge. spimiso is sampled every positive edge. 0 1 1 spiclk is low when idle ? the first edge is positive. valid data is output on spimosi every positive edge. spimiso is sampled every negative edge. 1 0 2 spiclk is high when idle ? the first edge is negative. valid data is output on spimosi before the first clock edge and is changed every positive edge. spimiso is sampled every negative edge. 1 1 3 spiclk is high when idle ? the first edge is negative. valid data is output on spimosi every negative edge. spimiso is sampled every positive edge. table 3 : spi configurations
36 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 if more than one spisel line is to be used in a system they must be used in numerical order starting from spisel0. a spisel line can be automatically de - asserted between transactions if required, or it may stay asserted over a number of transactions . for devices such as memorie s where a large amount of data can be received by the master by continually providing spiclk transitions, the ability for the select line to stay asserted is an advantage since it keeps the slave enabled over the whole of the transfer. a transaction commen ces with the spi bus being set to the correct configuration, and then the slave device is selected. upon commencement of transmission (1 to 32 bits) data is placed in the fifo data buffer and clocked out, at the same time generating the corresponding spic lk transitions. since the transfer is full - duplex, the same number of data bits is being received from the slave as it transmits. the data that is received during this transmission can be read (1 to 32 bits). if the master simply needs to provide a numb er of spiclk transitions to allow data to be sent from a slave, it should perform transmit using dummy data. an interrupt can be generated when the transaction has completed or alternatively the interface can be polled. if a slave device wishes to signal the jn516x indicating that it has data to provide, it may be connected to one of the dio pins that can be enabled as an interrupt. figure 24 shows a c omplex spi transfer, reading data from a flash device that can be achieved using the spi master interface. the slave select line must stay low for many separate spi accesses, and therefore manual slave select mode must be used. the required slave select ca n then be asserted (active low) at the start of the transfer. a sequence 8 and 32 bit transfers can be used to issue the command and address to the flash device and then to read data back. finally, the slave select can be deselected to end the transaction. 0 1 2 3 4 5 6 7 instruction (0x03) 23 22 21 3 2 1 0 8 9 10 28 29 30 31 24-bit address msb instruction transaction 7 6 5 4 3 2 1 0 msb 0 1 2 3 4 5 7 8n-1 3 2 1 0 lsb read data bytes transaction(s) 1-n spisel spiclk spimosi spimiso spisel spiclk spimosi spimiso 8 9 10 7 6 5 msb byte 1 byte 2 byte n value unused by peripherals 6 figure 24 : example spi waveforms ? reading from flash device using mode 0
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 37 10.2 serial peripheral interface slave the serial peripheral interface (spi) slave interface allows high - speed synchronous data transfer between the jn516x and a peripheral device. the jn516x operates as a slave on the spi bus and an external device connected to the spi bus operates as the master. the pins are different from the spi master interface and are shown in the following table. signal dio assignment standard pins alternative pins spisclk dio15 spismiso dio13 dio17 spismosi dio12 dio16 spissel dio14 table 4 : spi slave io the spi bus employs a simple shift register data transfer scheme, with spissel acting as the active low select control. data is clocked out of and into the active devices in a first - in, first - out fashion allowing spi devices to transmit and receive data simultaneously. master - out - slave - in or master -in - slave - out data transfe r is relative to the clock signal spi s clk generated by the external master. the spi slave includes the following features: ? full - duplex synchronous data transfer ? slaves to external clock up to 8 mhz ? supports 8 bit transfers (msb or lsb first configurable ), w ith spissel deselected between each transfer ? internal fifo up to 255 bytes for transmit and receive ? standard spi mode 0, data is sampled on positive clock edge ? maskable interrupts for receive fifo not empty, t ransmit fifo empty, r eceive fifo fill level above threshold, t ransmit fifo fill level below threshold, t ransmit fifo overflow, r eceive fifo overflow, receive fifo underflow, t ransmit fifo underflow, r eceive timeout ? programmable receive timeout period allows an interrupt to be generated to prompt the receive fifo to be read if no further data arrives within the timeout period
38 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 11 timers 11.1 peripheral timer/counters a general - purpose timer/counter unit, timer0, is available that can be configured to operate in one of five possible modes. this has: ? clocked from internal system clock (16mhz) ? 5 - bit prescaler, divides system clock by 2 prescale value as the clock to the timer (prescaler range is 0 to 16) ? 16- bit counter, 16- bit rise and fall (period) registers ? timer: can generate interrupts off rise and fall cou nts. can be gated by external signal ? counter: counts number of transitions on external event signal. can use low - high, high- low or both transitions ? pwm/single pulse: outputs repeating pulse width modulation signal or a single pulse. can set period and m ark - space ratio ? capture: measures times between transitions of an applied signal ? delta - sigma: return-to - zero (rtz) and non- return-to - zero (nrz) modes ? timer usage of external io can be controlled on a pin by pin basis four further timers are also available that support the same functionality but have no counter or capture mode. these are referred to as pwm timers. additionally, is not possible to gate these four timers with an external signal. >= d q rise = < fall delta sigma interrupt generator counter interrupt enable capture generator prescaler sysclk timxck_gt timxcap interrupt pwm/? pwm/? pwm/? reset generator edge select en en timxout sw reset system reset single shot -1 figure 25 : timer unit block diagram
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 39 the clock source for the timer0 unit is fed from the 16mhz system clock. this clock passes to a 5 - bit prescaler where a value of 0 leaves the clock unmodified and other values divide it by 2 prescale value. for example, a prescal e value of 2 applied to the 16mhz system clock source results in a timer clock of 4mhz. the counter is optionally gated by a signal on the clock/gate input (tim0ck_gt). if the gate function is selected, then t he counter is frozen when the clock/gate inp ut is high. an interrupt can be generated whenever the counter is equal to the value in either of the high or low registers. the following table details which dio are used for timer0 and the pwm depending upon the configuration. signal dio assignment standard pins alternative pins tim0ck_gt dio8 dio2 tim0cap dio9 dio3 tim0out dio10 dio4 pwm1 dio11 dio5 pwm2 dio12 dio6 pwm3 dio13 dio7 pwm4 dio17 dio8 table 5 : timer and pwm io the alternative pin locations can be configured separately for each counter/timer under software control, without affecting the operation or location of the others if operating in timer mode , it is not necessary to use any of the dio pins, allowing the sta ndard dio functionality to be available to the application. 11.1.1 pulse width modulation mode pulse width modulation (pwm) mode, as used by pwm timers 1,2 3 and 4 and optionally by timer0, allows the user to specify an overall cycle time and pulse length within the cycle. the pulse can be generated either as a single shot or as a train of pulses with a repetition rate determined by the cycle time. in this mode, the cycle time and low periods of the pwm output signal can be set by the values of two independent 16- bit registers (fall and rise). the counter increments and its output is compared to the 16- bit rise and fall registers. when the counter is equal to the rise register, the pwm output is set to high; when the counter reaches the fall value, the output re turns to low. in continuous mode, when the counter reaches the fall value, it will reset and the cycle repeats. if either the cycle time or low periods are cha nged while in continuous mode, the new values are not used until a full cycle has completed. th e pwm waveform is available on pwm1,2,3 ,4 or tim0out when the output driver is enabled. rise fall figure 26 pwm output timings 11.1.2 capture mode the capture mode can be used to measure the time between transitions of a signal applied to the capture input (tim0cap). when the capture is started, on the next low -to - high transition of the captured signal, the count value is stored in the rise register , and on the following high -to - low transition, the counter value is stored in the fall register. the pulse width is the difference in counts in the two registers multiplied by the period of the prescaled clock. upon reading the capture registers the coun ter is stopped. the values in the high and low registers will be updated whenever there is a corresponding transition on the capture input, and the value stored will be relative to when the mode was started. therefore, if multiple pulses are seen on tim0 cap before the counter is stopped only the last pulse width will be stored.
40 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 clk capt x 9 3 x 14 t rise t rise t fall t fall rise fall 9 5 4 3 7 capture mode enabled figure 27 : capture mode 11.1.3 counter/timer mode the counter/timer can be used to generate interrupts, based on the timers or event counting, for software to use. as a timer the clock source is from the system clock, prescaled if required. the timer period is programmed into the fall register and the fall register match interrupt enabled. the timer is started as either a sing le - shot or a repeating timer, and generates an interrupt when the counter reaches the fall register value. when used to count external events on tim0ck_gt the clock source is selected from the input pin and the number of events programmed into the fall reg ister. the fall register match interrupt is enabled and the counter started, usually in single shot mode. an interrupt is generated when the programmed number of transitions is seen on the input pin. the transitions counted can configured to be rising, f alling or both rising and falling edges. edges on the event signal must be at least 100nsec apart, i.e. pulses must be wider than 100nsec. 11.1.4 delta - sigma mode a separate delta - sigma mode is available, allowing a low speed delta- sigma dac to be implemented with up to 16 - bit resolution. this requires that a resistor - capacitor network is placed between the output dio pin and digital ground. a stream of pulses with digital voltage levels is generated which is integrated by the rc network to give an analogue v oltage. a conversion time is defined in terms of a number of clock cycles. the width of the pulses generated is the period of a clock cycle. the number of pulses output in the cycle, together with the integrator rc values, will determine the resulting a nalogue voltage. for example, generating approximately half the number of pulses that make up a complete conversion period will produce a voltage on the rc output of vdd1/2, provided the rc time constant is chosen correctly. during a conversion, the puls es will be pseudo - randomly dispersed throughout the cycle in order to produce a steady voltage on the output of the rc network. the output signal is asserted for the number of clock periods defined in the high register, with the total period being 2 16 cycl es. for the same value in the high register, the pattern of pulses on subsequent cycles is different, due to the pseudo - random distribution. the delta - sigma converter output can operate in a return -to - zero (rtz) or a non - return-to - zero (nrz) mode. the nr z mode will allow several pulses to be output next to each other. the rtz mode ensures that each pulse is separated from the next by at least one period. this improves linearity if the rise and fall times of the output are different to one another. esse ntially, the output signal is low on every other output clock period, and the conversion cycle time is twice the nrz cycle time i.e. 2 17 clocks. the integrated output will only reach half vdd2 in rtz mode, since even at full scale only half the cycle cont ains pulses. figure 28 and figure 29 illustr ate the difference between rtz and nrz for the same programmed number of pulses.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 41 1 2 3 1 2 n conversion cycle 1 2 17 n conversion cycle 2 3 figure 28 : return to zero mode in operation 1 2 3 1 2 n conversion cycle 1 n 3 2 16 conversion cycle 2 figure 29 : non - return to zero mode 11.1.5 infra -r ed transmission mode infra - red transmission mode is a special feature of timer 2 that is used to facilitate the generation of waveforms for infra - red remote control transmission . remote control protocols, such as philips rc - 6, apply on - off key (ook) modulation to a carrier signal using an encoded bit s tream. the infra - red transmission mode supports a variety of remote control protocols that have different carrier frequency, carrier duty - cycle and data bit encoding require men ts. in this mode, timer 2 is configured t o produce a carrier waveform that is ook modulated by a programmable bit sequence of up to 4096 bits stored in ram. the resultant waveform is output to the associated timer 2 output pin. the jn516x integrated periph erals api user guide [4] includes some examples. 11.1.6 example timer/counter application figure 30 shows an application of the jn516x timers to provide closed loop speed control. pwm1 is configured in pwm mode to provide a variable mark - space ratio switching waveform to the gate of the nfet. this in turn controls the power in the dc motor. timer 0 is configured to count the rising edge events on the clk/gate pin over a constant period. this converts the tacho pulse stream output into a count proportional to the motor speed. this value is then used by the application software executing the control algorithm. if required for other functionality, then the unused io associated with the tim ers could be used as general purpose dio. jn516x pwm1 timer0 clk/gate capture pwm m tacho 1n4007 +12v irf521 1 pulse/rev figure 30 : closed loop pwm speed control using jn516x timers
42 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 11.2 tick timer the jn516x contains a hardware timer that can be used for generating timing interrupts t o software. it may be used to implement regular events such as ticks for software timers or an operating system, as a high - precision timing reference or can be used to implement system monitor timeouts as used in a watchdog timer. features include: ? 32- bit counter ? 28- bit match value ? maskable timer interrupt ? single - shot, restartable or continuous modes of operation match value counter = mode control & & sysclk run match int enable tick timer interrupt reset mode figure 31 tick timer the tick timer is clocked from a continuous 16mhz clock, which is fed to a 32 - bit wide resettable up- counter, gated by a signal from the mode control block. a match register allows comparison between the counter and a programmed value. the match value, measured in 16mhz clock cycles is programmed through software, in the range 0 to 0x0fffffff. the output of the comparison can be used to generate an interrupt if the interrupt is enabled and used in controlling the counter in the different modes. upon configuring the timer mode, the counter is also reset. if the mode is pr ogrammed as single shot, the counter begins to count from zero until the match value is reached. the match signal will be generated which will cause an interrupt if enabled, and the counter will stop counting. the counter is restarted by reprogramming th e mode. if the mode is programmed as restartable, the operation of the counter is the same as for the single shot mode, except that when the match value is reached the counter is reset and begins counting from zero. an interrupt will be generated when the match value is reached if it is enabled. continuous mode operation is similar to restartable, except that when the match value is reached, the counter is not reset but continues to count. an interrupt will be generated when the match value is reached if enabled. 11.3 wakeup timers two -41 bit wakeup timers are available in the jn516x driven from the 32khz internal clock. they may run during sleep periods when the majority of the rest of the device is powered down, to time sleep periods or other long period ti mings that may be required by the application. the wakeup timers do not run during deep sleep and may optionally
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 43 be disabled in sleep mode through software control. when a wakeup timer expires it typically generates an interrupt, if the device is asleep then the interrupt may be used as an event to end the sleep period. see section 18 for further details on how they are used during sleep periods. features include: ? 41- bit down- counter ? optionally runs during sleep periods ? clocked by 32khz system clock; either 32khz rc oscillator, 32khz xtal oscillator or 32khz clock input a wakeup timer consists of a 41 - bit down counter clocked from the selected 32 khz clock. an interrupt or wakeup event can be generated when the counter reaches zero. on reaching zero the counter will continue to count down until stopped, which allows the latency in responding to the interrupt to be measured. if an interrupt or wa keup event is required, the timer interrupt should be enabled before loading the count value for the period. once the count value is loaded and counter started, the counter begins to count down; the counter can be stopped at any time through software cont rol. the counter will remain at the value it contained when the timer was stopped and no interrupt will be generated. the status of the timers can be read to indicate if the timers are running and/or have expired; this is useful when the timer interrupts are masked. this operation will reset any expired status flags. 11.3.1 32 khz rc oscillator calibration the 32 khz rc oscillator that can be used to time sleep periods is designed to require very little power to operate and be self - contained, requiring no external timing components and hence is lower cost. as a consequence of using on- chip resistors and capacitors, th e inherent absolute accuracy and temperature coefficient is lower than that of a crystal oscillator, but once calibrated the accuracy approaches that of a crystal oscillator. sleep time periods should be as close to the desired time as possible in order to allow the device to wake up in time for important events, for example beacon transmissions in the ieee802.15.4 protocol. if the sleep time is accurate, the device can be programmed to wake up very close to the calculated time of the event and so keep cur rent consumption to a minimum. if the sleep time is less accurate, it will be necessary to wake up earlier in order to be certain the event will be captured. if the device wakes earlier, it will be awake for longer and so reduce battery life. please not e, that oscillator has a default current consumption of around 0.5ua, optionally this can be reduced to 0.375ua, which can improve battery life, however, the calibrated accuracy and temperature coefficient will be worse as a consequence. for detailed elect rical specifications, see section 19.3.9 . in order to allow sleep time periods to be as close to the desired length as possible, the true frequency of the rc oscillator needs to be determined to better than the initial 30% accuracy. the calibration factor can then be used to calculate the true number of nominal 32khz periods needed to make up a particular sleep time. a calibration reference counter, clocked from the 16mhz system clock, is provided to allow comparisons to be made between the 32khz rc clock and the 16mhz system clock when the jn516x is awake and running from the 32mhz crystal. wakeup timer0 counts for a set number of 32khz clock period s during which time the reference counter runs. when the wakeup timer reaches zero the reference counter is stopped, allowing software to read the number of 16mhz clock ticks generated during the time represented by the number of 32khz ticks programmed in the wakeup timer. the true period of the 32khz clock can thus be determined and used when programming a wakeup timer to achieve a better accuracy and hence more accurate sleep periods for a rc oscillator running at exactly 32,000hz the value returned by t he calibration procedure should be 10000, for a calibration period of twenty 32,000hz clock periods. if the oscillator is running faster than 32,000hz the count will be less than 10000, if running slower the value will be higher. for a calibration count of 9000, indicating that the rc oscillator period is running at approximately 35khz, to time for a period of 2 seconds the timer should be loaded with 71,111 ((10000/9000) x (32000 x 2)) rather than 64000.
44 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 12 pulse counters two 16 - bit counters are provided t hat can increment during all modes of operation (including sleep). the first, pc0, increments from pulses received on dio1 or dio4 . the other pulse counter, pc1 operates from dio5 or dio8 depending upon the configuration. this is enabled under software control. the pulses can be de - bounced using the 32khz clock to guard against false counting on slow or noisy edges. increments occur from a configurable rising or falling edge on the respective dio input. each counter has an associated 16 - bit reference that is loaded by the user. an interrupt (and wakeup event if asleep) may be generated when a counter reaches its pre - configured reference value. the two counters may optionally be cascaded together to provide a single 32 - bit counter, linked to any of t he four dio?s . the counters do not saturate at 65535, but naturally roll - over to 0. additionally, the pulse counting continues when the reference value is reached without software interaction so that pulses are not missed even if there is a long delay bef ore an interrupt is serviced or during the wakeup process. the system can work with signals up to 100khz, with no debounce, or from 5.3khz to 1.7khz with debounce. when using debounce the 32khz clock must be active, so for minimum sleep currents the debou nce mode should not be used.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 45 13 serial communications the jn516 x has two universal asynchronous receiver/transmitter (uart) serial communication interface s . these provide similar operating features to the industry standard 16550a device operating in fifo mo de. the interface s perform serial -to - parallel conversion on incoming serial data and parallel -to - serial conversion on outgoing data from the cpu to external devices. in both directions, a configurable fifo buffer (with a default depth of 16 - bytes) allows the cpu to read and write multiple characters on each transaction. this means that the cpu is freed from handling data on a character -by - character basis, with the associated high processor overhead. the uart s have the following features: ? emulates behavio ur of industry standard ns16450 and ns16550a uarts ? configurable transmit and receive fifo buffers (with default depths of 16 - bytes for each), with direct access to fill levels of each. adds/deletes standard start, stop and parity bits to or from the serial data ? independently controlled transmit, receive, status and data sent interrupts ? optional modem flow control signals cts and rts on u art 0. ? fully programmable data formats: baud rate, start, stop and parity settings ? false start bit detection, parity, framing and fifo overrun error detect and break indication ? internal diagnostic capabilities: loop - back controls for communications link fault isolation ? flow control by software or automatically by hardware processor bus divisor latch registers line status register line control register fifo control register receiver fifo transmitter fifo baud generator logic transmitter shift register receiver shift register transmitter logic receiver logic rxd txd modem control register modem status register modem signals logic rts cts interrupt id register interrupt enable register interrupt logic internal interrupt figure 32 : uart block diagram the serial interface s contain programmable f ields that can be used to set number of data bits (5, 6,7 or 8), even, odd, set -at - 1, set -at - 0 or no - parity detection and generation of single or multiple stop bit, (for 5 bit da ta, multiple is 1.5 stop bits; for 6, 7 or 8 data bits, multiple is 2 bits). the baud rate is programmable up to 1mbps, standard baud rates such as 4800, 9600, 19.2k, 38.4k etc. can be configured. for applications requiring hardware flow control, uart0 pr ovides two control signals: clear - to - send (cts) and request -to - send (rts). cts is an indication sent by an external device to the uart that it is ready to receive data. rts is an indication sent by the uart to the external device that it is ready to rece ive data. rts is controlled from software , while the value of cts can be read. monitoring and control of cts and rts is a software activity, normally performed as part of interrupt processing. the signals do not control parts of the uart hardware, but s imply indicate to software the state of the uart external interface s . alternatively, the automatic flow control mode can be set
46 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 where the hardware controls the value of the generated rts (negated if the receive fifo fill level is greater than a programmab le threshold of 8, 11, 13 or 15 bytes), and only transmits data when the incoming cts is asserted. software can read characters, one byte at a time, from the receive fifo and can also write to the transmit fifo, one byte at a time . the transmit and receiv e fifos can be cleared and reset independently of each other. the status of the t ransmit fifo can be checked to see if it is empty, and if there is a character being transmitted. the status of the receive fifo can also be checked, indicating if condition s such as parity error, framing error or break indication have occurred. it also shows if an overrun error occurred (receive buffer full and another character arrives) and if there is data held in the receive fifo. uart0 and uart1 can both be configured t o use standard or alternative dio lines, as shown in table 5. additionally, uart0 can be configured to be used in 2 - wire mode (where cts0 and rts0 are not configured), and uart1 can be configured in 1 - wire mode (where rxd1 is not configured). these freed u p dio pins can then be used for other purposes. signal dio assignment standard pins alternative pins cts0 dio4 dio12 rts0 dio5 dio13 txd0 dio6 dio14 rxd0 dio7 dio15 txd 1 dio14 dio11 rxd 1 dio15 dio9 table 6 : uart io . note: with the automatic flow control threshold set to 15, the hardware flow control within the uart ?s block negates rts when the y receive fifo that is about to become full. in some instances it has been observed that remote devices that are transmitting data d o not respond quickly enough to the de - asserted cts and continue to transmit data. in these instances the data will be lost in a receive fifo overflow. 13.1 interrupts interrupt generation can be controlled for the uart ?s block, and is divided into four catego ries: ? received data available: is set when data in the rx fifo queue reaches a particular level (the trigger level can be configured as 1, 4, 8 or 14) or if no character has been received for 4 character times. ? transmit fifo empty: set when the last charac ter from the tx fifo is read and starts to be transmitted. ? receiver line status: set when one of the following occur (1) parity error - the character at the head of the receive fifo has been received with a parity error, (2) overrun error - the rx fifo is full and another character has been received at the receiver shift register, (3) framing error - the character at the head of the receive fifo does not have a valid stop bit and (4) break interrupt ? occurs when the rxd line has been held low for an entire character. ? modem status: generated when the cts (clear to send) input control line changes. 13.2 uart application the following example shows the uart 0 connected to a 9 - pin connector compatible with a pc. as the jn516 x device pins do not provide the rs232 li ne voltage, a level shifter is used.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 47 jn516x rts cts txd rxd uart0 rs232 level shifter 1 2 3 4 5 6 7 8 9 cd rd td dtr sg dsr rts cts ri pc com port pin signal 1 5 6 9 figure 33 : jn516 x serial communication link
48 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 14 jtag test interface the jn516x includes an ieee1149.1 compliant jtag port for the purpose of manufacturing test. the software debugger is not supported with this product. the jtag interface does not support boundary scan testing. i t is recommended that the jn516x is not connected as part of the board scan chain.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 49 15 tw o - wire serial interface (i 2 c) the jn516 x includes in dustry standard i 2 c two - wire synchronous serial interface operates as a master (msif) or slave (ssif) that provides a simple and efficient method of data exchange between devices. the system uses a serial data line (sif_d) and a serial clock line (sif_clk) to perform bi - directional data transfers and includes the following features: common to both master and slave: ? compatible with both i 2 c and smbus peripherals ? support for 7 and 10 - bit addressing modes ? optional pulse suppression on signal inputs (60ns guara nteed, 125ns typical) master only: ? multi - master operation ? software programmable clock frequency ? supports slave c lock stretching ? software programmable acknowledge bit ? interrupt or bit - polling driven byte-by - byte data- transfers ? bus busy detection slave only: ? programmable slave address ? simple byte level transfer protocol ? write data flow control using acknowledge mechanism ? read data flow control using clock stretching ? read data preloaded or provided as required the serial interface is accessed, depending upon the configuration, dio14 and dio15 or dio16 and dio17. this is enabled under software control. the following table details which dio are used for the serial interface depending upon the configuration. signa l dio assignment standard pins alternative pins sif_clk dio14 dio16 sif_d dio15 dio17 table 7 : two - wire serial interface io 15.1 connecting devices the clock and data lines, sif_d and sif_clk, are alternate functions of dio15 and dio14 respectively. the serial interface function of these pins is selected when the interface is enabled. they are both bi - directional lines, connected internally to the positive supply voltage via weak ( 50k ? ) programmable pull - up resistors. however, it is recommended that external 4.7k ? pull - ups be used for reliable operation at high bus speeds, as shown in figure 34. when the bus is free, both lines are high. the output stages of devices connected to the bus must have an open - drain or open - collector in order to perform the wired - and function. the number of devices connected to the bus is solely dependent on the bus capacitance limit of 400pf. as this is an optional interface with two alternate positions, the dio cells have not been customise d for i 2 c operation. in particular, note that there are esd diodes to the nominal 3 volt supply (vdd2) from the sif_clk and sif_d pins. therefore, if the vdd s uppl y is removed from the jn5168 and this then discharges to ground, a path would exist that could pull down the bus lines (see 2.2.6 ) .
50 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 sif_clk sif_d vdd d1_out d1_i n clk1_i n clk1_out d2_i n clk2_i n clk2_out device 1 device 2 r p r p pullup resistors d2_out jn516x si f dio14 dio15 figure 34 : connection details 15.2 clock stretching slave devices can use clock stretching to slow down the read transfer bit rate. after the master has driven sif_clk low, the slave can drive sif_clk low for the required period and then release it. if the slave?s sif_clk low period is greater than the master?s low period the resulting sif_clk bus signal low period is stretched thus inserting wait states ? see section 15.4 for further details. sif_clk sif_clk sif_clk master sif_clk slave sif_clk wired-and sif_clk clock held low by slave figure 35 : clock stretching 15.3 master two - wire serial interface when operating as a master device, it provides the clock signal and a prescale register d etermines the clock rate, allowing operation up to 400kbit/s. data transfer is controlled from the processor bus interface at a byte level, with the processor responsible for indicating when start, stop, read, write and acknowledge control should be genera ted. write data written into a transmit buffer will be written out across the two - wire interface when indicated, and read data received on the interface is made available in a receive buffer. indication of when a particular transfer has completed may be in dicated by means of an interrupt or by polling a status bit. the first byte of data transferred by the device after a start bit is the slave address. the jn516 x supports both 7 - bit and 10 - bit slave addresses by generating either one or two address transfer s. only the slave with a matching address will respond by returning an acknowledge bit. the master interface provides a true multi - master bus including collision detection and arbitration that prevents data corruption. if two or more masters simultaneously try to control the bus, a clock synchronization procedure determines the bus clock. because of the wired - and connection of the interface, a high-to - low transition on the bus affects all connected devices. this means a high -to - low transition on the sif_clk line causes all concerned devices to count off their low period. once the clock input of a device has gone low, it will hold the sif_clk line in that state until the clock high state is reached when it releases the sif_clk line. due to the wired - and conne ction, the sif_clk line will therefore be held low by the device with the longest low period, and held high by the device with the shortest high period.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 51 sif_clk1 sif_clk2 sif_clk master1 sif_clk master2 sif_clk wired-and sif_clk start counting low period start counting high period wait state figure 36 : multi - master clock synchronisation aft er each transfer has completed, the status of the device must be checked to ensure that the data has been acknowledged correctly, and that there has been no loss of arbitration. (n.b. loss of arbitration may occur at any point during the transfer, includin g data cycles). an interrupt will be generated when arbitration has been lost.
52 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 15.4 slave two - wire serial interface when operating as a slave device, the interface does not provide a clock signal, although it may drive the clock signal low if it is required to apply clock stretching during read transfers . only transfers whose address matches the value programmed into the interface?s address register are accepted. the interface allows both 7 and 10 bit addresses to be programmed, but only responds with an acknow ledge to a single address. addresses defined as ?reserved? will not be responded to, and should not be programmed into the address register. a list of reserved addresses is shown in table 8 . address name behaviour 0000 000 general call/start byte ignored 0000 001 cbus address ignored 0000 010 reserved ignored 0000 011 reserved ignored 0000 1xx hs - mode master code ignored 1111 1xx reserved ignored 1111 0xx 10- bit address only responded to if 10 bit address set in address register table 8 : list of two - wire serial interface reserved addresses data transfer is controlled from the processor bus interface at a byte level, with the processor res ponsible for taking write data from a receive buffer and providing read data to a transmit buffer when indicated. a series of interrupt status bits are provided to control the flow of data. for writes, in to the slave interface, it is important that data is taken from the receive buffer by the processor before the next byte of data arrives. to enable thi s, t he interface returns a not acknowledge (nack) to the master if more data is received before the previous data has been taken. this will lead to the termination of the current data transfer. for reads, from the slave interface, the data may be preloaded into the transmit buffer when it is empty (i.e. at the start of day, or when the last data has been read), or fetched each time a read transfer is requ ested. when using data preload, read data in the buffer must be replenished following a data write, as the transmit and received data is contained in a shared buffer. the interface will hold the bus using clock stretching when the transmit buffer is empty. interrupts may be triggered when: ? data buffer read data is required ? a byte of data to be read should be provided to avoid the interface from clock stretching ? data buffer read data has been taken ? this indicates when the next data may be preloaded into the data buffer ? data buffer write data is available ? a byte of data should be taken from the data buffer to avoid data backoff as defined above ? the last data in a transfer has completed ? i.e. the end of a burst of data, when a stop or restart is seen ? a p rotocol error has been spotted on the interface
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 53 16 random number generator a random number generator is provided which creates a 16 - bit random number each time it is invoked. consecutive calls can be made to build up any length of random number required. each call takes approximately 0.25msec to complete. alternatively, continuous generation mode can be used where a new number is generated approximately every 0.25msec. in either mode of operation an interrupt can be generated to indicate when the number is ava ilable, or a status bit can be polled. the random bits are generated by sampling the state of the 32mhz clock every 32khz system clock edge. as these clocks are asynchronous to each other, each sampled bit is unpredictable and hence random.
54 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 17 analogue peri pherals the jn516x contains a number of analogue peripherals allowing the direct connection of a wide range of external sensors and switches. adc supply voltage (vdd1) comparator 1 comp1m (dio17) comp1p (dio16) adc1 vref/adc2 adc3 (dio0) adc4 (dio1) vref internal reference vref select chip boundary temp sensor figure 37 : analogue peripherals in order to provide good i solation from digital noise, the analogue peripherals and radio are powered by the radio regulator, which is supplied from the analogue supply vdd1 and referenced to analogue ground vssa. a reference signal vref for the adc can be selected between an inter nal bandgap reference or an external voltage reference supplied to the vref pin. adc input 2 cannot be used if an external reference is required , as this uses the same pin as vref. note also that adc3 and adc4 use the same pins as dio0 and dio1 respectiv ely. these pins can only be used for the adc if they are not required for any of their alternative functions. similarly, the comparator inputs are shared with dio16 and dio17. if used for their analogue functions, these dios must be put into a passive st ate by setting them to inputs with their pull - ups disabled. the adc is clocked from a common clock source derived from the 16mhz clock . 17.1 analogue to digital converter the 10- bit analogue to digital converter (adc) uses a successive approximation design to p erform high accuracy conversions as typically required in wireless sensor network applications. it has six multiplexed single - ended input channels: four available externally, one connected to an internal temperature sensor, and one connected to an interna l supply monitoring circuit.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 55 17.1.1 operation the input range of the adc can be set between 0v to either the reference voltage or twice the reference voltage. the reference can be either taken from the internal voltage reference or from the external voltage appl ied to the vref pin. for example, an external reference of 1.2v supplied to vref may be used to set the adc range between 0v and 2.4v. vref gain setting maximum input range supply voltage range (vdd) 1.2v 1.6v 1.2v 1.6v 0 0 1 1 1.2v 1.6v 2.4v 3.2v 2.2v - 3.6v 2.2v - 3.6v 2.6v - 3.6v 3.4v - 3.6v table 9 : adc maximum input range the input clock to the adc is 16mhz and can be divided down to 2mhz, 1mhz, 500khz and 250khz. during an adc conversion the selected input channel is sampled for a fixed period and then held. this sampling period is defined as a number of adc clock periods and can be programmed to 2, 4, 6 or 8. the conversion rate is ((3 x sample per iod) + 1 3 ) clock periods. for example for 500khz conversion with sample period of 2 will be (3 x 2) + 1 3 = 1 9 clock periods, 3 8 secs or 26. 32 khz. the adc can be operated in either a single conversion mode or alternatively a new conversion can be started as soon as the previous one has completed, to give continuous conversions. if the source resistance of the input voltage is 1k or less, then the default sampling time of 2 clocks should be used. the input to the adc can be modelled as a resistor of 5k (typ ) and 10k (max) to represent the on- resistance of the switches and the sampling capacitor 8pf. the sampling time required can then be calculated, by adding the sensor source resistance to the switch resistance, multiplying by the capacitance giving a ti me constant. assuming normal exponential rc charging, the number of time constants required to give an acceptable error can be calculated, 7 time constants gives an error of 0. 091 %, so for 10- bit accuracy 7 time constants should be the target. for a sourc e with zero resistance, 7 time constants is 64 0 nsecs, hence the smallest sampling window of 2 clock periods can be used. adc pin 5 k 8 pf sample switch adc front end figure 38 : adc input equivalent circuit the adc sampling period, input range and mode (single shot or continuous) are controlled through software . when the adc conversion is complete, an interrupt is generated. alternatively the conversion status can be polled. when operating in continuous mode, it is recommended that the interr upt is used to signal the end of a conversion, since conversion times may range from 9.5 to 1 48 p secs. polling over this period would be wasteful of processor bandwidth. to facilitate averaging of the adc values, which is a common practice in microcontro llers, a dedicated accumulator has been added, the user can define the accumulation to occur over 2,4,8 or 16 samples. the end of conversion interrupt can be modified to occur at the end of the chosen accumulation period, alternatively polling can still be used. software can then be used to apply the appropriate rounding and shifting to generate the average value, as well as setting up the accumulation function. for detailed electrical specifications, see section 19.3.7 .
56 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 17.1.2 supply monitor the internal supply monitor allows the voltage on the analogue supply pin vdd1 to be measured. this is achieved with a potential divider that reduces the voltage by a factor of 0.666, allowing it to fall inside the input range of the adc when set with an input range twice the internal voltage reference. the resistor chain that performs the voltage reduction is disabled until the measurement is made to avoid a continuous drain on the su pply. 17.1.3 temperature sensor the on chip temperature sensor can be used either to provide an absolute measure of the device temperature or to detect changes in the ambient temperature. in common with most on chip temperature sensors, it is not trimmed and so the absolute accuracy variation is large; the user may wish to calibrate the sensor prior to use. the sensor forces a constant current through a forward biased diode to provide a voltage output proportional to the chip die temperature which can then be me asured using the adc. the measured voltage has a linear relationship to temperature as described in section 19.3.13 . because this sensor is on chip, any measuremen ts taken must account for the thermal time constants. for example, if the device just came out of sleep mode the user application should wait until the temperature has stabilised before taking a measurement. 17.1.4 adc sample buffer mode in this mode, the adc op erates in conjunction with a dma (direct memory access) engine as follows : ? adc sampling is triggered at a configurable rate using one of the on - chip timers (timer 0, 1, 2, 3 or 4) ? adc samples are automatically stored in a buffer located in ram using a dma mechanism ? adc inputs may be multiplexed between different analogue sources the 1 0 - bit adc data samples are transferred into the b uffer in ram as 16 - bit words . the maximum number of 16 - bit words that may allocated in ram for adc sample storage is 2047. the buffer may be configured to automatically wrap around to the start when full. interrupts may be configured to indicate when the buffer is half - full, full and has overflow ed. the cpu may perform other tasks while the data transfer and storage is being manag ed independently by the dma engine - the cpu only needs to configure the adc s ample b uffer m ode and deal with the stored samples in the buffer when an interrupt occurs . adc sample buffer mode allows up to six analogue inputs to be multiplexe d in combinatio n. these inputs comprise four external inputs (adc1 - 4, corresponding to io pins), an on- chip temperature sensor and an internal voltage monitor. samples from all the selected inputs will be produced on each timer trigger and stored in consecutive ram l ocations . 17.2 comparator the jn516 x contains one analogue comparator, comp1, that is designed to have true rail -to - rail inputs and operate over the full voltage range of the analogue supply vdd1. the hysteresis level can be set to a nominal value of 0mv, 10mv , 20mv or 40mv. the source of the negative input signal for the comparator can be set to the internal voltage reference, the negative external pin (comp1m, which uses the same pin as dio17) or the positive external pin (comp1p, on the same pin as dio16). the source of the positive input signal can be comp1p or comp1m. dio16 and dio17 cannot be used if the external comparator inputs are needed. the comparator output is routed to an internal register and can be polled, or can be used to generate interrupt s. the comparator can be disabled to reduce power consumption. dio16 and dio17 should be set to inputs with pull - ups disabled, when using the comparator. the comparator also has a low power mode where the response time of the comparator is slower than the normal mode, but the current required is greatly reduced . t hese figures are specified in section 19.3.8 . it is the only mode that may be used duri ng sleep , where a transition of the comparator output will wake the device. the wakeup action and the configuration for which edge of the comparator output will be active are controlled through software. in sleep mode the negative input signal source must be configured to be driven from the external pins.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 57 18 power management and sleep modes 18.1 operating modes three operating modes are provided in the jn516 x that enable the system power consumption to be controlled carefully to maximise battery life. ? active processing mode ? sleep mode ? deep sleep mode the variation in power consumption of the three modes is a result of having a series of power domains within the chip that may be control lably powered on or off. 18.1.1 power domains the jn516x has the following power domains: ? vdd supply domain : supplies the wake - up timers and controller, dio blocks, comparator, svm and bor plus fast rc, 32khz rc and crystal oscillators. this domain is driven from the external supply (battery) and is always powered. the wake - up timers and controller, and the 32khz rc and crystal oscillators may be powered on or off in sleep mode through software control. ? digita l logic domain : supplies the digital peripherals, cpu, flash, ram when in active processing mode , baseband controller, modem and encryption processor. it is powered off during sleep mode. ? ram domain : supplies the ram when in active processing mode. also su pplies the ram during sleep mode to retain the memory contents. it may be powered on or off for sleep mode through software control. ? radio domain : supplies the radio interface, adcs and temperature sensor. it is powered during transmit and receive and wh en the analogue peripherals are enabled. it is controlled by the baseband processor and is powered off during sleep mode. the current consumption figures for the different modes of operation of the device is given in section 19.2. 2 . 18.2 active processing mode active processing mode in the jn516 x is where all of the application processing takes place. by default, the cpu will execute at the selected clock speed executin g application firmware. all of the peripherals are available to the application, as are options to actively enable or disable them to control power consumption; see specific peripheral sections for details. whilst in active processing mode there is the op tion to doze the cpu but keep the rest of the chip active; this is particularly useful for radio transmit and receive operations, where the cpu operation is not required therefore saving power. 18.2.1 cpu doze whilst in doze mode, cpu operation is stopped but the chip remains powered and the digital peripherals continue to run. doze mode is entered through software and is terminated by any interrupt request. once the interrupt service routine has been executed, normal program execution resumes. doze mode uses mo re power than sleep and deep sleep modes but requires less time to restart and can therefore be used as a low power alternative to an idle loop. whilst in cpu doze the current associated with the cpu is not consumed, therefore the basic device current is r educed as shown in the figures in section 19.2.2.1 . 18.3 sleep mode the jn516 x enters sleep mode through software control . in this mode most of the internal chip functi ons are shutdown to save power, however the state of dio pins are retained, including the output values and pull - up enables, and this therefore preserves any interface to the outside world.
58 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 when entering into sleep mode, there is an option to retain the r am contents throughout the sleep period . if the wakeup timers are not to be used for a wakeup event and the application does not require them to run continually, then power can be saved by switching off the 32khz oscillator if selected as the 32khz system clock through software control. the oscillator will be restarted when a wakeup event occurs. whilst in sleep mode one of four possible events can cause a wakeup to occur: transitions on dio inputs, expiry of wakeup timers, pulse counters maturing or compa rator events. if any of these events occur, and the relevant interrupt is enabled, then an interrupt is generated that will cause a wakeup from sleep. it is possible for multiple wakeup sources to trigger an event at the same instant and only one of them will be accountable for the wakeup period. it is therefore necessary in software to remove all other pending wakeup events prior to requesting entry back into sleep mode; otherwise, the device will re - awaken immediately. when wakeup occurs, a similar seq uence of events to the reset process described in section 6.1 happens, including the checking of the supply voltage by the supply voltage monitor 6.4 . the high - speed rc oscillator is started up, once stable the power to cpu system is enabled and the reset is removed. software determines that this is a reset from sleep and so commences wi th the wakeup process. if ram contents were held through sleep, wakeup is quicker as the software does not have to initialise ram contents meaning the application can recommence more quickly. see section 19.3.5 for wake - up timings. 18.3.1 wakeup timer event the jn516x contains two 41- bit wakeup timers that are counters clocked from the 32khz oscillator, and can be programmed to generate a wake - up event. fo llowing a wakeup event, the timers continue to run. these timers are described in section 11.3 . timer events can be generated from both of the two t imers; one is intended for use by the 802.15.4 protocol, the other being available for use by the application running on the cpu. these timers are available to run at any time, even during sleep mode. 18.3.2 dio event any dio pin when used as an input has the ca pability, by detecting a transition, to generate a wake - up event. once this feature has been enabled the type of transition can be specified (rising or falling edge). even when groups of dio lines are configured as alternative functions such as the uarts or timers etc, any input line in the group can still be used to provide a wakeup event. this means that an external device communicating over the uart can wakeup a sleeping device by asserting its rts signal pin (which is the cts input of the jn516x ). 18.3.3 co mparator event the comparator can generate a wakeup interrupt when a change in the relative levels of the positive and negative inputs occurs. the ability to wakeup when continuously monitoring analogue signals is useful in ultra - low power applications. for example, the jn516 x can remain in sleep mode until the voltage drops below a threshold and then be woken up to deal with the alarm condition and the comparator has a low current mode to facilitate this. 18.3.4 pulse counter the jn516 x contains two 16 bit pul se counters that can be programmed to generate a wake - up event. following the wakeup event the counters will continue to operate and therefore no pulse will be missed during the wake - up process . these counters are described in section 12 .to minimize sleep current it is possible to disable the 32k rc oscillator and still use the pulse counters to cause a wake - up event, provided debounce mode is not required. 18.4 deep sleep mode deep sleep mode gives the lowest power consumption. all switchable power domains are off and most functions in the vdd supply power domain are stopped , including the 32khz rc oscillator . h owever, the brown - out reset remains active as well as all the dio cells. this mode can be exited by a hardware reset on the resetn pin, or an enabled dio or comparator wakeup event. in all cases, the wakeup sequence is equivalent to a power - up sequence, with no knowledge retained from the p revious time the device was awake .
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 59 19 electrical characteristics 19.1 maximum ratings exceeding these conditions may result in damage to the device. parameter min max device supply voltage vdd1, vdd2 - 0.3v 3.6v supply voltage at voltage regulator bypass pins vb_xxx - 0.3v 1.98v voltage on analogue pins xtalout, xtalin, vcotune, rf_in. - 0.3v vb_xxx + 0.3v voltage on analogue pins vref, adc1, ibias - 0.3v vdd1 + 0.3v voltage on any digital pin - 0.3v vdd2 + 0.3v storage temperature - 40 o c 150 o c reflow soldering temperature a ccording to ipc/jedec j - std -020c 260 o c esd rating human body model 1 2.0kv charged device model 2 500v 1) testing for human body model discharge is performed as specified in jedec standard jesd22 - a114. 2) testing for charged device model discharge is performed as specified in jedec standard jesd22 - c101. 19.2 dc electrical characteristics 19.2.1 operating conditions supply min max vdd1, vdd2 2.0v 3.6v standard ambient temperature range -40o c 85o c extended ambient temperature range -40o c 125o c in the following sections typical is defined as 25 o c and vdd1,2 = 3v most parameter values cover the extended temperature range up to 125 o c, where this is not the case, two values are given, the value in italics type face is for standard temperature range up to 85 o c and the value in bold is for the extended range.
60 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 19.2.2 dc current consumption vdd = 2.0 to 3.6v, - 40 to + 12 5 o c 19.2.2.1 active processing mode: min typ max unit notes cpu processing 32,16,8,4,2 or 1mhz 1700 + 2 05 /mhz a gpios enabled. when in cpu doze the current related to cpu speed is not consumed. radio transmit 1 5.3 ma cpu in software doze ? radio transmitting radio receive 1 7.0 ma cpu in software doze ? radio in receive mode the following current figures should be added to those above if the feature is being used adc 550 a temperature sensor and battery measurements require adc comparator 73/0.8 a normal/low - power uart 6 0 a for each uart timer 21 a for each timer 2 - wire serial interface (i 2 c) 46 a 19.2.2.2 sleep mode mode: min typ max unit notes sleep mode with i/o wakeup 0.12 a waiting on i/o event sleep mode with i/o and rc oscillator timer wakeup ? measured at 25 o c 0. 64 a as above, but also waiting on timer event. if both wakeup timers are enabled then add another 0.05 a 32khz crystal oscillator 1. 4 a as alternative sleep timer the following current figures should be added to those above if the feature is being used ram retention ? measured at 25o c 0. 9 a comparator (low - power mode) 0.8 a reduced response time 19.2.2.3 deep sleep mode mode: min typ max unit notes deep sleep mode ? measured at 25 o c 100 n a waiting on chip reset or i/o event
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 61 19.2.3 i/o characteristics vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes internal dio pullup resistors 40 5 0 60 k ? internal resetn pullup resistor 267 325 455 605 410 500 700 930 615 . 63 6 750, 775 1050, 1085 1395, 1441 k ? vdd2 = 3.6v vdd2 = 3.0v vdd2 = 2.2v vdd2 = 2.0v digital i/o high input vdd2 x 0.7 vdd2 v digital i/o low input - 0.3 vdd2 x 0.27 v digital i/o input hysteresis 200 310 400 mv dio high o/p (2.7 - 3.6v) vdd2 x 0.8 vdd2 v with 4ma load dio low o/p (2.7 - 3.6v) 0 0.4 v with 4ma load dio high o/p (2.2 - 2.7v) vdd2 x 0.8 vdd2 v with 3ma load dio low o/p (2.2 - 2.7v) 0 0.4 v with 3ma load dio high o/p (2.0 - 2.2v) vdd2 x 0.8 vdd2 v with 2.5ma load dio low o/p (2.0 - 2.2v) 0 0.4 v with 2.5ma load current sink/source capability 4 3 2.5 ma vdd2 = 2.7v to 3.6v vdd2 = 2.2v to 2.7v vdd2 = 2.0v to 2.2v i il - input leakage current 20, 3 0 na vcc = 3.6v, pin low i ih - input leakage current 20, 6 0 na vcc = 3.6v, pin high 19.3 ac characteristics 19.3.1 reset and supply voltage monitor internal reset vdd v pot t stab figure 39 : internal power - on reset w ithout showing brown - out
62 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 internal reset resetn v rst t stab t rst figure 40 : externally applied reset vdd = 2.0 to 3.6v, - 40 to + 12 5 o c parameter min typ max unit notes external reset pulse width to initiate reset sequence (t rst ) 1 s assumes internal pullup resistor value of 100k worst case and ~5pf external capacitance external reset threshold voltage (v rst ) vdd2 x 0.7 v minimum voltage to avoid being reset internal power - on reset threshold voltage (v pot ) rise/fall time > 10ms 1.4 4 1.4 1 v rising falling spike rejection square wave pulse 1us triangular wave pulse 10us 1.2 1.3 v depth of pulse to trigger reset reset stabilisation time (t stab ) 180 s note 1 chip current when held in reset (i reset) 6 ua brown - out reset current consumption 80 na supply voltage monitor threshold voltage (v th ) 1.86 1.92 2.02 2.11 2.21 2.30 2.59 2.88 1.94 2.00 2.10 2.20 2.30 2.40 2.70 3.00 2.00 2.06 2.16 2.27 2.37 2.47 2.78 3.09 v configurable threshold with 8 levels supply voltage monitor hysteresis (v hys ) 37 38 45 52 58 65 82 100 mv corresponding to the 8 threshold levels 1 time from release of reset to start of executing of bootloader code from internal flash. an extra 15us is incurred if the bor circuit has been activated (e.g., if the supply voltage has been ramped up from 0v)".
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 63 v th + v hys v th dvdd internal borest internal svm v pot figure 41 brown - out reset followed by supply voltage montior trigger 19.3.2 spi mast er timing t ssh t sss t ck t si t hi mosi (mode=1,3) ss mosi (mode=0,2) miso (mode=0,2) miso (mode=1,3) t vo t vo clk (mode=0,1) t si t hi clk (mode=2,3) figure 42 : spi master timing parameter symbol min max unit clock period t ck 62.5 - ns data setup time t si 16.7 @ 3.3v 18.2 @ 2.7v 21.0 @ 2.0v - ns data hold time t hi 0 ns data invalid period t vo - 15 ns select set - up period t sss 60 - ns select hold period t ssh 30 (spiclk = 16mhz) 0 (spiclk<16mhz, mode=0 or 2) 60 (spiclk<16mhz, mode=1 or 3) - ns
64 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 19.3.3 spi slave timing parameter symbol min max unit clock period t ck 125 - ns idle t ime t idle 125 - ns data input setup time t si 10 - ns data input hold time t hi 1 0 - ns data output invalid period from spisclk falling edge t ckvo - 30 ns data output invalid period from spissel falling edge t selvo 30 ns delay from spissel falling edge to spisclk rising edge t sela 3 0 - ns delay from spisclk falling edge to spissel rising edge t seln 30 - ns ? ? spisclk spissel spismosi spism i s o ? ? t idle t seln t si t hi t sela t ck t ckvo t selvo figure 43 : spi slave timing
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 65 19.3.4 two - wire serial interface t buf sr p s s t low t hd;sta t f t r t hd;dat t high t su;dat t su;sta t hd;sta t su;sto t sp t r t f sif_d sif_clk figure 44 : two - wire serial interface timing parameter symbol standard mode fast mode unit min max min max sif_clk clock frequency f scl 0 100 0 400 khz hold time (repeated) start condition. after this period, the first clock pulse is generated t hd:sta 4 - 0.6 - s low period of the sif_clk clock t low 4.7 - 1.3 - s high period of the sif_clk clock t high 4 - 0.6 - s set - up time for repeated start condition t su:sta 4.7 - 0.6 - s data setup time sif_d t su:dat 0.25 - 0.1 - s rise time sif_d and sif_clk t r - 1000 20+0.1cb 300 ns fall time sif_d and sif_clk t f - 300 20+0.1cb 300 ns set - up time for stop condition t su:sto 4 - 0.6 - s bus free time between a stop and start condition t buf 4.7 - 1.3 - s pulse width of spikes that will be suppressed by input filters (note 1) t sp - 60 - 60 ns capacitive load for each bus line c b - 400 - 400 pf noise margin at the low level for each connected device (including hysteresis) v nl 0.1vdd - 0.1vdd - v noise margin at the high level for each connected device (including hysteresis) v nh 0.2vdd - 0.2vdd - v note 1: this figure indicates the pulse width that is guaranteed to be suppressed. pulse with widths up to 125nsec may also get suppressed. 19.3.5 wakeup timings parameter min typ max unit notes time for crystal to stabilise ready to run cpu 0. 7 4 ms reached oscillator amplitude threshold . default bias current time for crystal to stabilise ready for radio activity 1.0 ms wake up from deep sleep or from sleep 170 s time to cpu release start - up time from reset resetn pin, bor or svm 1 80 s time to cpu release wake up from cpu doze mode 0.2 s
66 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 19.3.6 bandgap reference vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes voltage 1.198 1. 235 1.2 60 v dc power supply rejection 58 db at 25 o c temperature coefficient +40 +135 + 6 5 + 93 ppm/ o c 20 to 85 o c -40o c to 20 o c 20 to 125 o c -40o c to 85 o c point of inflexion + 80 o c 19.3.7 analogue to digital converters vdd = 3.0v, vref = 1.2v, - 40 to + 125 o c , italic +85 o c bold +125 o c parameter min typ max unit notes resolution 10 bits 500khz clock current consumption 550 a integral nonlinearity 1 .6 , 1. 8 lsb differential nonlinearity - 0.5 +0.5 lsb guaranteed monotonic offset error -10 -20 mv 0 to vref range 0 to 2vref range gain error +10 +20 mv 0 to vref range 0 to 2vref range internal clock 0.25,0.5 or 1.0 m hz 16mhz input clock, 16, 32 or 64 no. internal clock periods to sample input 2, 4, 6 or 8 programmable conversion time 9.5 148 s programmable input voltage range 0.04 vref or 2*vref v switchable. refer to 17.1.1 vref (internal) see section 19.3.6 vref (external) 1.15 1.2 1.6 v allowable range into vref pin input capacitance 8 pf in series with 5k ohms
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 67 19.3.8 comparator vdd = 2.0 to 3.6v - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes analogue response time (normal) 90 125 , 130 ns +/ - 250mv overdrive 10pf load total response time (normal) including delay to interrupt controller 125 + 125 , 130 ns digital delay can be up to a max. of two 16mhz clock periods analogue response time (low power) 2. 2 2.8 s +/ - 250mv overdrive no digital delay hysteresis 7 1 4 28 10 20 40 16, 17 2 8 , 30 5 3 , 5 7 mv programmable in 3 steps and zero vref (internal) see section 19.3.6 v common mode input range 0 vdd v current (normal mode) 5 6 73 96 , 1 0 0 a current (low power mode) 0.8 1. 0 , 1. 1 a 19.3.9 32khz rc oscillator vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes current consumption of cell and counter logic (default) 590 520 465 720, 800 660, 740 600, 650 n a 3.6v 3.0v 2.0v current consumption of cell and counter logic (low power) 465 375 290 500, 550 425, 460 330, 370 n a 3.6v 3.0v 2.0v 32khz clock un - calibrated accuracy -10% 32khz +40% without temperature & voltage variation (note1) calibrated 32khz accuracy (default) low power 300 600 ppm for a 1 second sleep period calibrating over 20 x 32khz clock periods variation with temperature - 0.010 - 0.020 %/ c default low power variation with vdd2 - 3.0 %/v note1: measured at 3v and 25 deg c
68 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 19.3.10 32khz crystal oscillator vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes current consumption of cell and counter logic 1. 4 1.75 , 2.0 a this is sensitive to the esr of the crystal, vdd and total capacitance at each pin start ? up time 0. 6 s assuming xtal with esr of less than 40kohms and cl= 9pf external caps = 15pf (vdd/2mv pk - pk) see appendix b input capacitance 1.4 pf bondpad and package transconductance 1 8.5 a/v external capacitors (cl=9pf) 15 pf total external capacitance needs to be 2*cl, allowing for stray capacitance from chip, package and pcb amplitude at xout vdd - 0.2 vp - p 19.3.11 32mhz crystal oscillator vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes current consumption 300 375 450, 500 a excluding bandgap ref. start ? up time 0. 7 4 ms assuming xtal with esr of less than 40ohms and cl= 9pf external caps = 15pf see appendix b input capacitance 1.4 pf bondpad and package transconductance 3.65 , 3.55 4.30 5.16 ma/v dc voltages, xtalin/xtalout 390/4 32 375/4 12 425/4 72 470/52 7 mv external capacitors (cl=9pf) 15 pf total external capacitance needs to be 2*cl, allowing for stray capacitance from chip, package and pcb amplitude detect threshold 320 mvp -p threshold detection accessible via api
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 69 19.3.12 high- speed rc oscillator vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes current consumption of cell 81 145 250, 275 a clock native accuracy -16% + 18% un - calibrated frequency 26.1 mhz calibrated centre frequency accuracy - 1.6% 32.1 +1.6% mhz without temperature & voltage variation calibrated centre frequency accuracy -4% 32.1 +5% mhz including temperature & voltage variation variation with temperature - 0.0 24, - 0.0 1 5 + 0.0 09 , + 0.0 06 %/ c variation with vdd2 - 0.25 +0.25 +0.5 , +0. 6 %/v startup time 2.4 us 19.3.13 temperature sensor vdd = 2.0 to 3.6v, - 40 to + 12 5 o c , italic +85 o c bold +125 o c parameter min typ max unit notes operating range - 40 - 12 5 c sensor gain -1. 56 -1. 66 -1. 7 6 mv/ c accuracy - - 7 c non - linearity - - 2. 0 , 3. 0 c output voltage 6 1 0 , 5 4 0 8 40 mv includes absolute variation due to manufacturing & temp typical voltage 7 30 mv typical at 3.0v 25 c resolution 0. 666 0. 706 0. 751 c/lsb 0 to vref adc i/p range 19.3.14 non- volatile memory vdd = 2.0 to 3.6v, - 40 to +125 o c, italic +85 o c bold +125 o c parameter min typ max unit notes flash endurance 10k 100/ 50k cycle program/erase flash erase time 100 ms one or more sectors flash programming time 1.0 ms 256 bytes eeprom endurance 100k 1m / 500k c program/erase (see 4.4 ) eeprom erase time 1.8 ms one 64 bytes page eeprom programming time 1.1 ms between 1 & 64 bytes retention time powered unpowered 10 20 years flash & eeprom
70 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 19.3.15 radio transceiver this jn516x meets all the requirements of the ieee802.15.4 standard over 2.0 - 3.6v and offers the following improved rf characteristics. all rf characteristics are measured single ended. this part also meets the following regulatory body approvals, when used with nxp?s module reference designs. compliant with fcc part 15, rules, ic canada, etsi ets 300 - 328 and japan arib std - t66 ? the pcb schematic and layout rules detailed in appendix b.4 must be followed. failure to do so will likely result in the jn516 x failing to meet the performance specification detailed herein and worst case may result in device not functioning in the end application. parameter min typical max notes rf port characteristics type single ended impedance 1 50ohm 2.4 - 2.5ghz frequency range 2.400 ghz 2.485ghz esd levels (pin 17) 2kv (hbm) 500v (cdm) 1) with external matching inductors and assuming pcb layout as in appendix b.4 .
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 71 radio parameters: 2.0 - 3.6v, +25oc parameter min typical max unit notes receiver characteristics receive sensitivity - 92 - 95 dbm nominal for 1% per, as per 802.15.4 section 6.5.3.3 maximum input signal + 10 dbm for 1% per, measured as sensitivity adjacent channel rejection ( - 1/+1 ch) [cw interferer] 19/34 [27/49] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) alternate channel rejection ( - 2/+2 ch) [cw interferer] 40/4 4 [54/54] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) other in band rejection 2.4 to 2.4835 ghz, excluding adj channels 48 dbc for 1% per with wanted signal 3db above sensitivity. (note1) out of band rejection 52 dbc for 1% per with wanted signal 3db above sensitivity. all frequencies except wanted/2 which is 8db lower. (note1) spurious emissions (rx) -6 5 < -70 -60 dbm measured conducted into 50ohms 30mhz to 1ghz 1ghz to 12ghz intermodulation protection 40 db for 1% per at with wanted signal 3db above sensitivity. modulated interferers at 2 & 4 channel separation (note1) rssi linearity -4 +4 db - 95 to - 10dbm. available through hardware api transmitter characteristics transmit power +0.5 +2.5 dbm output power control range -35 db in three 12db steps (note3) spurious emissions (tx) -40 < -70 < -70 dbm measured conducted into 50ohms 30mhz to 1ghz, 1ghz to12.5ghz, the following exceptions apply 1.8 to 1.9ghz & 5.15 to 5.3ghz evm [offset ] 3.0 4.5 % at maximum output power transmit power spectral density -38 -20 dbc at greater than 3.5mhz offset, as per 802.15.4, section 6.5.3.1
72 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 radio parameters: 2.0 - 3.6v, - 40oc parameter min typical max unit notes receiver characteristics receive sensitivity - 93. 0 - 96. 0 dbm nominal for 1% per, as per 802.15.4 section 6.5.3.3 maximum input signal + 10 dbm for 1% per, measured as sensitivity adjacent channel rejection ( - 1/+1 ch) [cw interferer] 19/34 [tbc] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) alternate channel rejection ( - 2/+2 ch) [cw interferer] 40/4 4 [tbc] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) other in band rejection 2.4 to 2.4835 ghz, excluding adj channels 47 dbc for 1% per with wanted signal 3db above sensitivity. (note1) out of band rejection 49 dbc for 1% per with wanted signal 3db above sensitivity. all frequencies except wanted/2 which is 8db lower. (note1) spurious emissions (rx) -6 4 < -70 -60 dbm measured conducted into 50ohms 30mhz to 1ghz 1ghz to 12ghz intermodulation protection 39 db for 1% per at with wanted signal 3db above sensitivity. modulated interferers at 2 & 4 channel separation (note1) rssi linearity -4 +4 db - 95 to - 10dbm. available through hardware api transmitter characteristics transmit power 0 +2. 00 dbm output power control range -35 db in three 12db steps (note3) spurious emissions (tx) -40 < -70 < -70 dbm measured conducted into 50ohms 30mhz to 1ghz, 1ghz to12.5ghz, the following exceptions apply 1.8 to 1.9ghz & 5.15 to 5.3ghz evm [offset] 3 .0 4.5 % at maximum output power transmit power spectral density -38 -20 dbc at greater than 3.5mhz offset, as per 802.15.4, section 6.5.3.1
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 73 radio parameters: 2.0 - 3.6v, +85oc parameter min typical max unit notes receiver characteristics receive sensitivity - 90 - 93 dbm nominal for 1% per, as per 802.15.4 section 6.5.3.3 maximum input signal + 10 dbm for 1% per, measured as sensitivity adjacent channel rejection ( - 1/+1 ch) [cw interferer] 19/34 [tbc] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) alternate channel rejection ( - 2/+2 ch) [cw interferer] 40/4 4 [tbc] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) other in band rejection 2.4 to 2.4835 ghz, excluding adj channels 49 dbc for 1% per with wanted signal 3db above sensitivity. (note1) out of band rejection 53 dbc for 1% per with wanted signal 3db above sensitivity. all frequencies except wanted/2 which is 8db lower. (note1) spurious emissions (rx) -6 6 < -70 -61 dbm measured conducted into 50ohms 30mhz to 1ghz 1ghz to 12ghz intermodulation protection 41 db for 1% per at with wanted signal 3db above sensitivity. modulated interferers at 2 & 4 channel separation (note1) rssi linearity -4 +4 db - 95 to - 10dbm. available through hardware api transmitter characteristics transmit power 0 + 2.0 dbm output power control range -35 db in three 12db steps (note3) spurious emissions (tx) -40 < -70 < -70 dbm measured conducted into 50ohms 30mhz to 1ghz, 1ghz to12.5ghz, the following exceptions apply 1.8 to 1.9ghz & 5.15 to 5.3ghz evm [offset] 3 .0 4.5 % at maximum output power transmit power spectral density -38 -20 dbc at greater than 3.5mhz offset, as per 802.15.4, section 6.5.3.1
74 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 radio parameters: 2.0 - 3.6v, +125oc parameter min typical max unit notes receiver characteristics receive sensitivity - 8 9 - 9 2 dbm nominal for 1% per, as per 802.15.4 section 6.5.3.3 maximum input signal +5 dbm for 1% per, measured as sensitivity adjacent channel rejection ( - 1/+1 ch) [cw interferer] 20 /34 [tbc] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) alternate channel rejection ( - 2/+2 ch) [cw interferer] 40/4 4 [tbc] dbc for 1% per, with wanted signal 3db, above sensitivity. (note1,2) (modulated interferer) other in band rejection 2.4 to 2.4835 ghz, excluding adj channels 49 dbc for 1% per with wanted signal 3db above sensitivity. (note1) out of band rejection 53 dbc for 1% per with wanted signal 3db above sensitivity. all frequencies except wanted/2 which is 8db lower. (note1) spurious emissions (rx) -6 6 < -70 -61 dbm measured conducted into 50ohms 30mhz to 1ghz 1ghz to 12ghz intermodulation protection 41 db for 1% per at with wanted signal 3db above sensitivity. modulated interferers at 2 & 4 channel separation (note1) rssi linearity -4 +4 db - 95 to - 10dbm. available through hardware api transmitter characteristics transmit power -0. 5 +1. 5 dbm output power control range -35 db in three 12db steps (note3) spurious emissions (tx) -40 < -70 < -70 dbm measured conducted into 50ohms 30mhz to 1ghz, 1ghz to12.5ghz, the following exceptions apply 1.8 to 1.9ghz & 5.15 to 5.3ghz evm [offset] 3 .0 4.5 % at maximum output power transmit power spectral density -38 -20 dbc at greater than 3.5mhz offset, as per 802.15.4, section 6.5.3.1
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 75 note1: blocker rejection is defined as the value, when 1% per is seen with the wanted signal 3db above sensitivity, as per 802.15.4 section 6.5.3.4 note2: channels 11,17,24 low/high values reversed. note3: up to an extra 2.5db of attenuation is available i f required.
76 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 appendix a mechanical and ordering information a.1 sot618 - 1 hvqfn40 40 - pin qfn package drawing figure 45 : 40 - pin qfn package drawings unit a max. a1 b c d dh e eh e e1 e2 l v w y y1 mm 1 0.05 0.00 0.30 0.18 0.2 6.1 5.9 4. 7 5 4 . 4 5 6.1 5.9 4. 7 5 4 . 4 5 0.5 4.5 4.5 0.5 0.3 0.1 0.05 0.05 0.1 table 10 : package dimensions ? plastic or metal protrusions of 0.075 mm maximum per side are not included.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 77 a.2 footprint information information for reflow soldering. all dimensions are given in the table underneath and are in millimeters solder land solder land plus solder paste a b c d e f g figure 46 : pcb decal ? the pcb schematic and layout rules detailed in appendix b.4 must be followed. failure to do so will likely result in the jn516 x failing to meet the performance specification detailed herein and worst case may result in device not functioning in the en d application. a b c d e f g 0.5 0.45 0.3 0.25 1.53x1.53 4.1x4.1 1. 0 x0.25 table 11 : footprint dimensions
78 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 a.3 ordering information the standard qualification for the jn516 x is extended i ndustrial temperature range: - 40o c to +12 5 o c, packaged in a 40- pin qfn package. the device is available in two different reel quantities ? tape mounted 40 00 devices on a 330mm reel ? tape mounted 1000 devices on a 180mm reel order codes: part number ordering code description jn516 1 - 001 jn516 1 /001 jn516 1 microcontroller jn516 4 - 0 01 jn51 64 / 0 01 jn516 4 microcontroller jn5168 - 001 jn5168/001 jn5168 microcontroller the standard supply multiple (ssm) for engineering samples or prototypes is 50 units with a maximum of 250 units. if the quantity of engineering samples or prototypes ordered is less than a reel quantity, then these will be shipped in tape form only, with no reel and will not be dry packaged in a moisture sensitive environment. the ssm for production status devices is one reel, all reels are dry packaged in a moisture barrier bag see a.5.3 .
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 79 a.4 device package marking the diagram below shows the package markings for jn516 x . the package on the left along with the legend information below it, shows the general format of package marking. the package on the right shows the specific markings for a jn516 8 device, that came fr om assembly build number 01 and was manufactu red week 25 of 2011. jn5168a xxxxxx xxxxff xxxywwxx jn5168a rul280 00yu01 qsd125- x n x p n x p figure 47 : device package marking legend: jn family part code xxxx 4 digit part number ff 2 digit assembly build number y 1 digit year number ww 2 digit week number ordering code part marking JN5161 / 001 JN5161a jn5164/001 jn5164a jn5168/001 jn5168a
80 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 a.5 tape and reel information a.5.1 tape orientation and dimensions t he general orientation of the 40 qfn package in the tape is as shown in figure 48. figure 48 : tape and reel orientation figure 49 shows the detailed d imensions of the tape used for 6x6mm 40 qfn devices. reference dimensions (mm) a o 6 .30 0.10 b o 6 .30 0.10 k o 1.10 0.10 f 7.5 00 0.10 p1 12. 0 0.10 w 16.00 +0.30/ - 0.3 (i) measured from centreline of sprocket hole to centreline of pocket (ii) cumulative tolerance of 10 sprocket holes is 0.20mm (iii) measured from centreline of sprocket hole to centreline of pocket (iv) other material available figure 49 : tape dimensions
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 81 a.5.2 reel information: 180mm reel surface resistivity between 1x10 10 ? 1x10 12 ohms square material high impact polystyrene, environmentally friendly, recyclable all dimensions and tolerances are fully compliant with eia - 481- b and are specified in millimetres. 6 window design with one window on each side blanked to allow adequate labelling space. figure 50 : reel dimensions
82 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 a.5.3 reel information: 330mm reel surface resistivity between 10e 9 ? 10e 11 ohms square material high impact polystyrene with antistatic additive all dimensions and tolerances are fully compliant with eia - 481- b and are specified in millimetres. 3 window design to allow adequate labelling space. figure 51 : 330mm reel dimensions a.5.4 dry pack requirement for moisture sensitive material moisture sensitive material, as classified by jedec standard j - std - 033, must be dry packed. the 40 lead qfn package is msl2a/260 c, and is dried before sealing in a moisture barrier bag (mbb) with desiccant bag weighing at 67.5 grams of activated clay and a humidity indicator card (hic) meeting mil -l - 8835 specification. the mbb has a moisture - sensitivity caution label to indicate the moisture - sensitive c lassification of the enclosed devices.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 83 appendix b development support b.1 crystal oscillators this section covers some of the general background to crystal oscillators, to help the user make informed decisions concerning the choice of crystal and the associated capacito rs. b.1.1 crystal equivalent circuit cs lm cm rm c2 c1 where m c is the motional capacitance m l is the motional inductance. this together with m c defines the oscillation frequency (series) m r is the equivalent series resistance ( esr ). s c is the shunt or package capacitance and this is a parasitic b.1.2 crystal load capacitance the crystal load capacitance is the total capacitance seen at the crystal pins, from all sources. as the load capacitance (cl) affects the oscillation frequency by a process known as ?pulling?, crystal manufacturers specify the frequency for a given load c apacitance only. a typical pulling coefficient is 15ppm/pf, to put this into context the maximum frequency error in the ieee802.15.4 specification is +/ - 40ppm for the transmitted signal. therefore, it is important for resonance at 32mhz exactly, that the s pecified load capacitance is provided. the load capacitance can be calculated using: cl = 2 1 2 1 t t t t c c c c + total capacitance in p t c c c c 1 1 1 1 + + = where 1 c is the capacitor component p c 1 is the pcb parasitic capacitance. with the recommended layout this is about 1.6pf in c 1 is the on - chip parasitic capacitance and is about 1.4pf typically. s imilarly for 2 t c hence for a 9pf load capacitance, and a tight layout the external capacitors should be 15pf
84 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 b.1.3 crystal esr and required transconductance the resistor in the crystal equivalent circuit represents the energy lost. to main tain oscillation, power must be supplied by the amplifier, but how much? firstly, the pi connected capacitors c 1 and c 2 with c s from the crystal, apply an impedance transformation to rm, when viewed from the amplifier. this new value is given by: 2 ? ? ? ? ? ? ? ? ? + = l l s m m c c c r r the amplifier is a transconductance amplifier, which takes a voltage and produces an output current. the amplifier together with the capacitors c1 and c2, form a circuit, which provides a negative resistance, when viewed from the crystal. the value of which is given by: 2 2 1 = t t m neg c c g r where m g is the transconductance is the frequency in rad/s derivations of these formulas can be easily found in textbooks. in order to give quick and reliable oscillator start - up, a common rule of thumb i s to set the amplifier negative resistance to be a minimum of 4 times the effective crystal resistance. this gives 2 2 1 t t m c c g 2 4 ? ? ? ? ? ? ? ? + l l s m c c c r this can be used to give an equation for the required transconductance . 2 1 2 2 1 2 1 2 ] ) ( [ 4 t t t t t t s m m c c c c c c c r g + + example: using typical 32mhz crystal parameters of m r =40 ? , s c =1pf and 1 t c = 2 t c =18pf ( for a load capacitance of 9pf), the equation above gives the required transconductance ( m g ) as 2.59ma/v. the jn516x has a typical value for transconductance of 4. 4 ma/v the example and equation illustrate the trade - off that exists between the load capacitance and crystal esr. for example, a crystal with a higher load capacitance can be used, but the value of max. esr that can be tolerated is reduced. also note, that the circuit sensitivity to external capacitance [ c 1 , c 2 ] is a square law . meeting the criteria for start - up is only one aspect of the way these parameters affect performance, they also affect the time taken during start - up to reach a given, (or full), amplitude. unfortunately, there is no simple mathematical model for this, b ut the trend is the same. therefore, both a larger load capacitance and larger crystal esr will give a longer start - up time, which has the disadvantages of reduced battery life and increased latency.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 85 b.2 32mhz oscillator the jn516 x contains the necessary o n - chip components to build a 32 mhz reference oscillator with the addition of an external crystal resonator, two tuning capacitors. the schematic of these components are shown in figure 52 . the two capacitors, c1 and c2, will typically be 15pf 5% and use a cog dielectric. for a detailed specification of the crystal required and factors affecting c1 and c2 see appendix b.1 . as with all crystal oscillators the pcb layout is especially important, both to keep parasitic capacitors to a minimum and to reduce the possibility o f pcb noise being coupled into the oscillator. xtalout c2 c1 r1 xtalin jn516x figure 52 : crystal oscillator connections the clock generated by this oscillator provides the reference for most of the jn516x subsystems, including the t ransceiver, processor, memory and digital and analogue peripherals. 32mhz crystal requirements parameter min typ max notes crystal frequency 32mhz crystal tolerance 40ppm including temperature and ageing crystal esr range ( rm) 10 ? 60 ? see below for more details crystal load capacitance range (cl) 6pf 9pf 12pf see below for more details not all combinations of crystal load capacitance and esr are valid recommended crystal load capacitance 9pf and max esr 40 ? external capacitors (c1 & c2) for recommended crystal 15pf cl = 9pf, total external capacitance needs to be 2*cl. , allowing for stray capacitance from chip, package and pcb
86 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 as is stated above, not all combinations of crystal load capacitance and esr are valid, and as explained in appendix b.1.3 there is a trade - off that exists between the load capacitance and crystal esr to achieve reliable performance. for this reason, we recommend that for a 9pf load capacitance crystals be specified with a maximum esr of 40 ohms. for lower load capacitances the recommended maximum esr rises, for exam ple, cl=7pf the max esr is 61 ohms. for the lower cost crystals in the large hc49 package, a load capacitance of 9 or 10pf is widely available and the max esr of 30 ohms specified by many manufacturers is acceptable. also available in this package style, a re crystals with a load capacitance of 12pf, but in this case the max esr required is 25 ohms or better. below is measurement data showing the variation of the crystal oscillator amplifier transconductance with temperature and supply voltage, notice how sm all the variation is. circuit techniques have been used to apply compensation, such that the user need only design for nominal conditions. 4.15 4.20 4.25 4.30 4.35 - 40 - 20 0 20 40 60 80 100 120 transconductance (ma/v) temperature (c) 32mhz crystal oscillator 4.27 4.28 4.29 4.3 4.31 4.32 4.33 4.34 4.35 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 transconductance (ma/v) supply voltage (vdd) 32mhz crystal oscillator
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 87 b.3 32khz oscillator in order to obtain more accurate sleep periods, the jn516 x contains the necessary on - chip components to build an optional 32khz oscillator with the addition of an external 32.768khz crystal and two tuning capacitors. the crystal should be connected between xtal32k_in and xtal32k_out (dio9 and dio10), with two equ al capacitors to ground, one on each pin. the schematic of these components are shown in figure 53 . the two capacitors, c1 and c2, will typically be in the range 10 to 22pf 5% and use a cog dielectric. as with all crystal oscillators the pcb layout is especially important, both to keep parasitic capacitors to a minimum and to reduce the possibility of pcb noise being coupled into the oscillator. 32kxtalout 32kxtalin jn516x figure 53 : 32khz crystal oscillator connections the electrical specification of the oscillator can be found in 19.3.10 . the oscillator cell is flexible and can operate with a range of commonly available 32khz crystals with load capacitances from 6 to 12.5p, and esr up to 80k ? . it achieves this by using automa tic gain control (agc), which senses the signal swing. as explained in appendix b.1.3 there is a trade - off that exists between the load capacitance and crystal esr to achieve reliable performance. the use of an agc function allows a wider range of crystal load capacitors and esr?s to be accommodated than would otherwise be possible. howeve r, this benefit does mean the supply current varies with the supply voltage (vdd), value of the total capacitance at each pin, and the crystal esr. this is described in the table and graphs below. 32khz crystal requirements parameter min typ max notes crystal frequency 32khz supply current 1. 4 a vdd=3v, temp=25 c, load cap =9pf, rm=25k supply current temp. coeff. 0.1%/c vdd=3v crystal esr range (rm) 10k ? 25k ? 80k ? see below for more details crystal load capacitance range (cl) 6pf 9pf 12.5pf see below for more details not all combinations of crystal load capacitance and esr are valid
88 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 three examples of typical crystals are given, each with the value of external capacitors to use, plus the likely supply current and start - up time that can be expected. also given is the maximum recommended esr based on the start -up criteria given in append ix b.1.3 . the values of the external capacitors can be calculated using the equation in appendix b.1.2 . load capacitance ext capacitors current start - up time max esr 9pf 15pf 1. 4a 0. 5s ec 70k ? 6pf 9pf 1. 1 a 0. 4 sec 80k ? 12.5pf 22pf 2. 2 a 1. 0 sec 35k ? below is measurement data showing the variation of the crystal oscillator supply current with voltage and with crystal esr, for two load capacitances. 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 current (ua) supply voltage (vdd) 32khz crystal oscillator 0.6 0.8 1 1.2 1.4 1.6 10 20 30 40 50 60 70 80 normalised current (idd) crystal esr (k ohm) 32khz crystal oscillator current 9pf 12.5pf
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 89 b.4 jn516 x module reference designs for customers wishing to integrate the jn516 x device directly into their system, nxp provide a range of module reference designs, covering standard , medium and high - power modules fitted with different antennae to ensure the correct performance, it is strongly recommended that where possible the desig n details provided by the reference designs, are used in their exact form for all end designs, this includes component values, pad dimensions, track layouts etc. in order to minimise all risks, it is recommended that the entire layout of the appropriate re ference module, if possible, be replicated in the end design. for full details, see [5] . please contact technical support. b.4.1 schematic diagram a schematic diagram of the jn516 x pcb antenna reference module is shown in figure 5 3 . details of component values and pcb layout constraints can be found in table 12 . 1 40 39 38 37 36 35 34 33 32 31 vssa 2 3 4 5 6 7 8 9 10 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 comp1p comp1m resetn xtal_out xtal_in vb_synth vcotune (nc) vb_vco vdd1 ibias vref vb_rf2 rf_in vb_rf adc1 spisel1 spisel2 dio2 dio3 do0 vss1 do1 dio18 dio19 vb_ram cts0 rts0 txd0 rxd0 vdd2 sif_d vss2 sif_clk dio13 dio12 vb_dig dio11 tim0out tim0cap tim0ck_ gt c7: 100nf 2-wire serial port timer0 c16: 100nf uart0/jtag c6: 100nf spi select analogue io c3: 100nf c1: 47pf l1: 5.1nh l2: 3.9nh vb_rf r1: 43k? to coaxial socket or integrated antenna c20: 100nf c14: 100nf c13: 10f vdd c2: 10nf c15: 100nf c10: 15pf c11: 15pf y1 analogue io c4: 47pf figure 54 jn516x pcb antenna module reference d esign
90 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 component designator value/type function pcb layout constraints c13 10f power source decoupling c14 100nf analogue power decoupling adjacent to u1 pin 9 c16 100nf digital power decoupling adjacent to u1 pin 30 c15 100nf vb synth decoupling less than 5mm from u1 pin 6 c2 10nf vb vco decoupling less than 5mm from u1 pin 8 c3 100nf vb rf decoupling less than 5mm from u1 pin 12 and u1 pin 14 c 4 47pf vb rf decoupling less than 5mm from u1 pin 12 and u1 pin 14 c6 100nf vb ram decoupling less than 5mm from u1 pin 25 c7 100nf vb dig decoupling less than 5mm from u1 pin 35 r1 43k current bias resistor less than 5mm from u1 pin 10 c20 100nf vref decoupling (optional) less than 5mm from u1 pin 11 y1 32mhz crystal (ael x32m000000 s039 or epson toyocom x1e000021016700 ) (cl = 9pf, max esr 40r) c10 15pf +/ - 5% cog crystal load capacitor adjacent to pin 4 and y1 pin 1 c11 15pf +/ -5% cog crystal load capacitor adjacent to pin 5 and y1 pin 3 c1 47pf ac coupling phycomp 2238 - 869 - 15479 must be copied directly from the reference design. l1 5. 1 nh rf matching inductor murata lqp15mn5n 1 b02 l2 3.9 nh load inductor murata lqp15mn 3 n 9 b02 table 12: jn516 x printed antenna reference module components and pcb layout constraints note1: for extended temperature operation p lease contact technical support . the paddle should be connected directly to ground. any pads that req uir e connection to ground should do so by connecting directly to the paddle.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 91 b.4.2 pcb design and reflow profile pcb and land pattern designs are key to the reliability of any electronic circuit design. the institute for interconnecting and packaging electronic circuits (ipc) defines a number of standards for electronic devices. one of these is the "surface mount design and land pattern standard" ipc -sm -782 [3] , commonly referred to as ? ipc782". this specification defines the physical packaging characteristics and land patterns for a range of surface mounted devices. ipc782 is also a useful reference document for general surface mount design techniques, containing sections on design requi rements, reliability and testability. nxp strongly recommends that this be referred to when designing the pcb. nxp also provide application note an10366, ?hvqfn application information? [6] , which describes the reflow soldering process. t he suggested reflow profile, from that application note, is shown in figure 55 . the specif ic paste manufacturers guidelines on peak flow temperature, soak times, time above liquids and ramp rates should also be referenced. figure 55 : recommended reflow profile for lead - free solder paste (snagcu) or ppf lead frame b.4.3 mo isture sensitivity level (msl) if there is moisture trapped inside a package, and the package is exposed to a reflow temperature profile, the moisture may turn into steam, which expands rapidly. this may cause damage to the inside of the package (delaminat ion), and it may result in a cracked semiconductor package body (the popcorn effect). a package?s msl depends on the package characteristics and on the temperature it is exposed to during reflow soldering. this is explained in more detail in [7] . depending on the damage after this test, an msl of 1 (not sensitive to moisture) to 6 (very sensitive to moisture) is attached to the semiconductor package.
92 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 related documents [1] ieee std 802.15.4 - 2006 ieee standard for information technology ? part 15.4 wireless medium access control (mac) and physical layer (phy) specifications for low - rate wireless personal area networks (lr - wpans). [2] jn -an - 1186 jn516x temperature d epend ent operating guidelines [3] ipc -sm -782 surface mount design and land pattern standard [4] jn -ug -3087 jn51 6 x integrated peripherals api user guide [5] jn -rd-6038 module reference design [6] http://ics.nxp.com/support/documents/logic/pdf/an10366.pdf [7] http://www.nxp.com/documents/application_note/an10365.pdf [8] jn -an - 1003 boot loader operation [9] jn -ug -3007 flash programmer user guide [10] jn -ug - 3068 time -of - flight api user guide [11] jn -an - 1143 time-of - flight [12] jn -ug -3075- jenos user guide rohs compliance jn516 x devices meet the requirements of directive 2002/95/ec of the european parliament and of the council on the restriction of hazardous substance (rohs) and of the china rohs (sj/t11363 ? 2006) requirements which came into force on 1 st march 2007. status information the status of this data sheet is. pr oduction nxp low power rf products progress according to the following format: advance the data sheet shows the specification of a product in planning or in development. the functionality and electrical performance specifications are target values of the design and may be used as a guide to the final specification. nxp reserves the right to make changes to the product specifica tion at anytime without notice. preliminary the data sheet shows the specification of a product that is commercially available, but is not yet fully qualified. the functionality of the product is final. the electrical performance specifications are targe t values and may used as a guide to the final specification. nxp reserves the right to make changes to the product specification at anytime without notice. production this is the production data sheet for the product. all functional and electrical perfor mance specifications, where included, including min and max values are derived from detailed product characterization. this data sheet supersedes all previous document versions. nxp reserves the right to make changes to the product specification at anytim e without notice.
? nxp laboratories uk 2013 jn -ds - jn516x v1.3 production 93 disclaimers limited warranty and liability ? information in this docu ment is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or c ompleteness of such information and shall have no liability for the consequences of use of such information. nxp semiconductors takes no responsibility for the content in this document if provided by an information source outside of nxp semiconductors. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitatio n - lost profits, lost savings, business interruption, costs related to the removal or replacement of any pro ducts or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggr egate and cumulative liability to wards customer for the products described herein shall be limited in accordance w ith the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make c hanges to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitabil ity for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life - critical or safety - critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors pro duct can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors and its suppliers accept no l iability for inclusion and/or use of nxp semiconductors products in such equipment or applicatio ns and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purposes only. nxp semiconductors makes no representation or warranty that such a pplications will be suitable for the specified use without further testing or modification. customers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liabi lity for any assistance with applications or customer product design. it is customer?s sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customer?s applications and products planned, as well as f or the plan ned application and use of customer?s third party customer(s). customers should provide appropriate design and operating safeguar ds to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability rela ted to any default, damage, costs or problem which is based on any weakness or default in the customer?s applications or products, or the application or use by customer?s third party customer(s). customer is responsible for doing all necessary testing for the customer?s applications and products using nxp semiconductors products in order to avoid a default of the applications an d the products or of the application or use by customer?s third party customer(s). nxp does not accept any liability in this respec t. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a pr ior authorization from competent authorities. limiting values ? stress above one or more limiting values (as de fined in the absolute maximum ratings system of iec 60134) will cause permanent damage to the device. limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the o perating c ondition s section or the electrical characteristics sections of this document is not warranted. constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. aec unqualified products ? this pro duct has not been qualified to the appropriate automotive electronics council (aec) standard q100 or q101 and should not be used in automotive applications, including but not limited to applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefo re such inclusion and/or use is for the customer?s own risk. product specification ? the information and data provided in a product data sheet shall define the specification of the product as agreed between nxp semiconductors and its customer, unless nxp s emiconductors and customer have explicitly agreed otherwise in writing. in no event however, shall an agreement be valid in which the nxp semiconductors product is deemed to offer functions and qualities beyond those described in the product data sheet all products are sold subject to nxp semiconductors? terms and conditions of sale, supplied at the time of order acknowledgment and published at http://www.nxp.com/profile/terms . trademarks all trademarks are the property of their respective owners. ?jennet? and ?jennet - ip? are trademarks of nxp b.v.. version control version notes 1.0 0 7 - 01 - 13 first public version , released as pr oduction 1.1 1 4 - 01 - 13 minor corrections made 1.2 25-04- 13 additional features included and more information on non - volatile memory 1.3 12-06- 13 minor correction to front page and format of pcb decal diagram
94 jn -ds - jn516x v1.3 production ? nxp laboratories uk 2013 contact details nxp laboratories uk ltd furnival street sheffield s1 4qt united kingdom tel: +44 (0)114 281 2655 fax: +44 (0) 114 281 2951 for the contact details of your local nxp office or distributor, refer to the nxp web site: www.nxp.com


▲Up To Search▲   

 
Price & Availability of JN5161

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X